latev
March 1st, 2009, 09:47 PM
What is the best way to implement the following scenario in Linux and in Samba in particular:
A file secrets.txt exists and I'd like to have 3 different levels of access rights in effect to it, that is 3 different groups - Group1, Group2 and Group3, where
* Group1 has no rights at all to that file - no read, no write nothing
* Group2 has read only rights and
* Group3 has read and write rights
That way depending on what rights I decide to assign to a particular user I can just add that user to be a member of the appropriate group
So what permissions, groups etc should I create and assign to the secrets.txt file?
/I don't want these groups rights to interfere in any way with the original owner of the secrets.txt file - ie if user1 is the original creator of the secrets.txt file I wouldn't want user2 who is a member of the Group3 (all access) to be able to modify or even read user1's files/
A file secrets.txt exists and I'd like to have 3 different levels of access rights in effect to it, that is 3 different groups - Group1, Group2 and Group3, where
* Group1 has no rights at all to that file - no read, no write nothing
* Group2 has read only rights and
* Group3 has read and write rights
That way depending on what rights I decide to assign to a particular user I can just add that user to be a member of the appropriate group
So what permissions, groups etc should I create and assign to the secrets.txt file?
/I don't want these groups rights to interfere in any way with the original owner of the secrets.txt file - ie if user1 is the original creator of the secrets.txt file I wouldn't want user2 who is a member of the Group3 (all access) to be able to modify or even read user1's files/