?
Solved

List all the groups to which a user is a member

Posted on 2006-07-19
5
Medium Priority
?
346 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 500 total points
ID: 17144118
groups user_name

Regards
Friedrich
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

765 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