Link to home
Start Free TrialLog in
Avatar of tammyf
tammyfFlag for United States of America

asked on

List all the groups to which a user is a member

What is the command to list all the groups to which a user is a member?
Avatar of bira
bira

cat /etc/group |grep username
or for better reading,

 cat /etc/group|grep bira|cut -f1 -d':'
change bira by username in the last post
Avatar of tammyf

ASKER

This did not work.  I did not mention that this is for an Xserve and maybe I need different commands?
ASKER CERTIFIED SOLUTION
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial