Solved

List all the groups to which a user is a member

Posted on 2006-07-19
5
303 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
Comment Utility
cat /etc/group |grep username
0
 
LVL 6

Expert Comment

by:bira
Comment Utility
or for better reading,

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

Expert Comment

by:bira
Comment Utility
change bira by username in the last post
0
 

Author Comment

by:tammyf
Comment Utility
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
Comment Utility
groups user_name

Regards
Friedrich
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

771 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

12 Experts available now in Live!

Get 1:1 Help Now