LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Groups members of other groups (https://www.linuxquestions.org/questions/linux-security-4/groups-members-of-other-groups-66672/)

bentz 06-19-2003 02:33 PM

Groups members of other groups
 
Is it at all possible to have nested groups, i.e. groups that are members of other groups? I'd like to assign group permissions to a directory, and add groups of users to the group being used for the directory.

/etc/group:
users1:x:500:user1,user2,user3
users2:x:501:user4,user5,user6
resource:x:600:users1,users2

And assigning permissions to the resource:
drwxrwx--- root resource 4096 Jun 19 18:42 directory

and have user1 be able to have rw access to this directory.


Or does it not work this way? Any PAM modules that might do this?

unSpawn 06-19-2003 07:47 PM

Why not? Did you try it?

bentz 06-20-2003 06:12 AM

Yeah, it breaks good. It seems like the system doesn't want to go the extra step of granting the user access to the 2nd nested supplementary group. In the above example, the system acts like user1 isn't a member of the resource group.

unSpawn 06-20-2003 07:29 AM

Damn. Then I see no alternative for you except implement Linux ACL...

ebs 06-21-2003 03:14 AM

thank for the reply

even i found it helpful
but when i use setfacl command i get the message
"setfacl:test:function not implemented"

can anyone help me for this....would be thankful

cheerio
ebs

unSpawn 06-21-2003 04:39 PM

...and *what* exactly are you trying to do? We're extemely low on ESP today.

ebs 06-22-2003 11:23 PM

actually what my problem is that am trying to set the acl entries but am not able to...
when i run the setfacl command with --test option then it shows me the resulting entries but it does not get implemented..
how do i implement it is my prob

i wanna know am i missing upon something,,,,
what has to be taken care of....
if anyone cud help me....for this

willbe thankful...
waiting for the +ve reply

cheerio...
ebs..!!


All times are GMT -5. The time now is 12:11 AM.