HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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

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.