Operating System - HP-UX
1826581 Members
3625 Online
109695 Solutions
New Discussion

Re: id command not giving secondary groups...

 
jmckinzie
Super Advisor

id command not giving secondary groups...

Can anyone help me figure out why the id command will not list all secondary groups?

As root i type it, it works fine for a specific user however when i type id username as another user, it only gives me the gid not the secondary groups.
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: id command not giving secondary groups...

Hi:

# groups -l username

Regards!

...JRF...
jmckinzie
Super Advisor

Re: id command not giving secondary groups...

but why does the id command work as expected?
Tim Nelson
Honored Contributor

Re: id command not giving secondary groups...

I do believe the listing of supplimental groups for "other" users is limited to root's privelage.

SKR_1
Trusted Contributor

Re: id command not giving secondary groups...

With root login you can see the secondary groups of all the users.

Thanks

SKR