Solved

List all the groups to which a user is a member

Posted on 2006-07-19
5
323 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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 …
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

813 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

16 Experts available now in Live!

Get 1:1 Help Now