LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2007, 02:42 PM   #1
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675
Blog Entries: 11

Rep: Reputation: 36
command to list all groups


I know you can get the system to show you a particular user's groups by typing 'groups <username>' as root. How can you get the system to print out a list of all the groups on the system? I think I know how to do it on gnome in the gui, but I want to know how to do it from the command line. Does anybody know?
 
Old 07-09-2007, 02:55 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 80
You mean something like:
Code:
# cat /etc/group
# more /etc/group
# less /etc/group
 
Old 07-09-2007, 03:45 PM   #3
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675
Blog Entries: 11

Original Poster
Rep: Reputation: 36
yes, thanks. Are users stored that same way?
 
Old 07-09-2007, 04:33 PM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Users are stored in /etc/passwd so:

Code:
# cat /etc/passwd
# more /etc/passwd
# less /etc/passwd
 
Old 07-09-2007, 04:33 PM   #5
El Lay
LQ Newbie
 
Registered: Feb 2007
Location: Wellington, NZ
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by radiodee1
yes, thanks. Are users stored that same way?
Try
Code:
cat /etc/passwd
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Command to see User Groups: what is it? TSynergy Linux - Newbie 3 11-17-2005 10:40 PM
list groups i am a member of curos Linux - Newbie 2 08-11-2005 07:23 PM
groups command not working.. samills70 Linux - Newbie 2 06-11-2004 05:22 AM
What command can list the userids in various user groups? davidas Linux - Newbie 1 04-16-2004 09:01 PM


All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration