• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 354
  • Last Modified:

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?
0
tammyf
Asked:
tammyf
  • 3
1 Solution
 
biraCommented:
cat /etc/group |grep username
0
 
biraCommented:
or for better reading,

 cat /etc/group|grep bira|cut -f1 -d':'
0
 
biraCommented:
change bira by username in the last post
0
 
tammyfAuthor Commented:
This did not work.  I did not mention that this is for an Xserve and maybe I need different commands?
0
 
fridomCommented:
groups user_name

Regards
Friedrich
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now