HI there.
Okay I need some help with file and directory permissions.
I have 2 users - User1 & User2. And a group called "sharez", which both users have as a supplementary group.
User1 has a directory called "Access" in his home directory. This directory is owned by User1 & the sharez group. The directory has permissions of 660.
My problem is that no matter what file permissions I give a file, User 2 can delete any file in the directory, even files where user1 is the owner and group owner. So if I had a file with owner and permissions of:
-rw------- User1 User1 File1
User2 can still delete the file.
Is this due to the directory having group permissions of 6? So that even though the file is not owned by the sharez group, because the directory is owned by the sharez group, any member of that group can delete files irrespective of the actual file permissions? Or is it due to the fact that both User1 & User2 are in the sharez group, and this over-rides any other group ownership where these users own a file?
So my question is this. What is the point of file permissions if all I really end up with is either group members can delete everything or nothing? How do I set up the directory / file permissions to allow for group members to be able to modify the files for their group, but not other groups?
Bookmarks