LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Two groups have permission on a Directory. (https://www.linuxquestions.org/questions/linux-newbie-8/two-groups-have-permission-on-a-directory-4175502563/)

jokar.mohsen 04-22-2014 08:27 AM

Two groups have permission on a Directory.
 
Hello.
How can I set permission for my directory with two different groups? For example I have two groups with the name G1 and G2 and groups can have access to a directory with the name test.

Cheers.

smallpond 04-22-2014 08:34 AM

Conventional Linux permissions only allow one owner and one group, so the simplest way is to create a new group G1G2 with all the users from G1 and G2.

szboardstretcher 04-22-2014 08:39 AM

You can use subgroups.

So a group X can refer to the groups A, B, and C.

You should also check into the ACL utilities and procedures using setfacl and such.

smallpond 04-23-2014 08:40 AM

Quote:

Originally Posted by szboardstretcher (Post 5157068)
You can use subgroups.

So a group X can refer to the groups A, B, and C.

Could you explain how this is done?


All times are GMT -5. The time now is 08:33 PM.