Solved

List all the groups to which a user is a member

Posted on 2006-07-19
5
313 Views
Last Modified: 2010-04-21
What is the command to list all the groups to which a user is a member?
0
Comment
Question by:tammyf
  • 3
5 Comments
 
LVL 6

Expert Comment

by:bira
ID: 17138035
cat /etc/group |grep username
0
 
LVL 6

Expert Comment

by:bira
ID: 17138048
or for better reading,

 cat /etc/group|grep bira|cut -f1 -d':'
0
 
LVL 6

Expert Comment

by:bira
ID: 17138057
change bira by username in the last post
0
 

Author Comment

by:tammyf
ID: 17138536
This did not work.  I did not mention that this is for an Xserve and maybe I need different commands?
0
 
LVL 24

Accepted Solution

by:
fridom earned 125 total points
ID: 17144118
groups user_name

Regards
Friedrich
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now