Operating System - HP-UX
1832964 Members
2502 Online
110048 Solutions
New Discussion

Primary and Secondary Groups

 
Chakravarthi
Trusted Contributor

Primary and Secondary Groups

Hi,

Need some clarification about the primary and secondary groups,

I have HPUX 10.20 which is configured as NIS client to solaris machine. Now users are part of more than one group, so when they login to HPUX 10.20 machine it'll only show the primary group as their active group, they need to do newgrp - to get the access to the other groups.

I want to aviod this newgrp command, so is there any way the user can get access to their primary and secondary group at the same time.

regards
chakri
2 REPLIES 2
Tom Geudens
Honored Contributor

Re: Primary and Secondary Groups

Hi,
I'm not sure I follow your point. When a user is in a secondary group, he can "cd" to directories for that group and he can "execute" executables for that group. The reason I would do a "newgrp" is if you want to have the files you create to have the secondary group as group ... but otherwise ...
Am I missing your point here ?

Regards,
Tom
A life ? Cool ! Where can I download one of those from ?
Michael Tully
Honored Contributor

Re: Primary and Secondary Groups

Try this:

# ln /etc/group /etc/logingroup

Once the user has logged out and in again all groups should be displayed.
Anyone for a Mutiny ?