tammyf
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?
cat /etc/group |grep username
or for better reading,
cat /etc/group|grep bira|cut -f1 -d':'
cat /etc/group|grep bira|cut -f1 -d':'
change bira by username in the last post
ASKER
This did not work. I did not mention that this is for an Xserve and maybe I need different commands?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.