Solved

List all the groups to which a user is a member

Posted on 2006-07-19
5
338 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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!

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

739 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