1753672 Members
5463 Online
108799 Solutions
New Discussion юеВ

Re: Nested groups

 
SOLVED
Go to solution
Andy Imm
Frequent Advisor

Nested groups

Running 11.31 ia.

Is it possible to have 3 groups containing various users assigned to a new group?
4 REPLIES 4
VK2COT
Honored Contributor
Solution

Re: Nested groups

Hello,

The answer is NO. This is not supported.

There is an old thread on the same topics:

http://h30499.www3.hp.com/t5/System-Administration/Nested-Groups-in-HP-UX-Possible/m-p/4900842#M404020


As a proof of concept, here is a test setup
in /etc/group on my HP-UX 11.31 server:

...
groupa::200:user2,user3
groupb::201:user4,user5
groupc::202:user6,user7,user8
groupd::203:groupa,groupb,groupc
...

If you run a check:

# grpck

the error is:

groupd::203:groupa,groupb,groupc
groupa - Logname not found in password file
groupb - Logname not found in password file
groupc - Logname not found in password file

Cheers,

VK2COT

VK2COT - Dusan Baljevic
Andy Imm
Frequent Advisor

Re: Nested groups

Thank you.

In my case I had users in 3 groups that needed access to a particular folder on the server that other users weren't supposed to have access to.

I ended up using ACL's at the root of that folder, then created a public directory inside of that folder so everyone could view the files.

Thx for your time,
Andy
Andy Imm
Frequent Advisor

Re: Nested groups

Thanks for your help
Dennis Handly
Acclaimed Contributor

Re: Nested groups

>Is it possible to have 3 groups containing various users assigned to a new group?

You can of course script this to copy the users from the three groups to the new one.