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. |
You're also the owner of the file. Change the mode to 0770.
|
So if I'm the owner of a file as well as in the file's group, only owner permissions affect?
|
Yes. Since you own the file, you could change the permissions. Also, if you have write permissions on the directory , you could delete it.
|
OK, thank you :)
|
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. |
To serve as an example, to test my theory :p
|
All times are GMT -5. The time now is 06:48 PM. |