LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 08-08-2006, 06:25 PM   #1
ichi
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 50

Rep: Reputation: 15
group permission problems


I'm having some problems with group permissions. For some reason they just don't seem to work.

The way I understand it is that if a user is a member of a group and that file is owned by that group, the group permissions of that file affects the user. But it just doesn't.

For example, a file named fish:

ls -l fish
----rwx--- 1 ichi games 8 Aug 8 23:06 fish

Group permissions are read, write and execute, so I should be able to read it, alter it, and execute if it's executable, if my user is a members of the games group. Which I am:

cat /etc/group | grep ichi
games:x:35:ichi

groups
wheel audio cdrom video games usb users portage

So I'm definately in the group. Yet when I try to read it:

cat fish
cat: fish: Permission denied

Does anyone know why this might happen?

Thanks in advance.
 
Old 08-08-2006, 06:46 PM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You're also the owner of the file. Change the mode to 0770.
 
Old 08-08-2006, 06:52 PM   #3
ichi
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 50

Original Poster
Rep: Reputation: 15
So if I'm the owner of a file as well as in the file's group, only owner permissions affect?
 
Old 08-09-2006, 04:52 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Yes. Since you own the file, you could change the permissions. Also, if you have write permissions on the directory , you could delete it.
 
Old 08-09-2006, 08:59 AM   #5
ichi
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 50

Original Poster
Rep: Reputation: 15
OK, thank you
 
Old 08-10-2006, 12:01 PM   #6
PingFloyd
Member
 
Registered: Jun 2006
Posts: 94

Rep: Reputation: 16
Why do you had it set up that the owner doesn't have permissions but the group does?

I can't think of any reasons for why to do things that way so you have me curious now.
 
Old 08-10-2006, 12:29 PM   #7
ichi
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 50

Original Poster
Rep: Reputation: 15
To serve as an example, to test my theory
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sftp permission and group problem dannykwok3000 Linux - General 4 09-07-2004 01:48 AM
smb permission for (sub)user group mweil Linux - Networking 0 07-23-2004 08:59 AM
group permission probs wheaties_box Linux - Security 15 08-20-2003 12:46 PM
Group permission klod Linux - Security 2 07-03-2003 08:08 PM
weird group permission... lp? WeNdeL Linux - Newbie 5 01-21-2003 07:29 AM


All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration