listing users and groups | Unix Linux Forums | Linux

  Go Back    


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

listing users and groups

Linux


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-16-2004
jalburger jalburger is offline
Registered User
 
Join Date: Sep 2002
Last Activity: 25 October 2011, 4:25 PM EDT
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
listing users and groups

RH 7.2

I'm trying to list the users & groups on my machine. I found the lsuser & lsgroup commands but no associated man pages.

I typed: lsuser
I get --> Valid options are: -a

So I typed: lsuser -a
I get --> Valid options are: groups, home

So I typed: lsuser -a groups
I get --> /usr/bin/lsuser: nawk: command not found

There is no "nawk" on my system.


For listing groups:

I typed: lsgroup
I get --> /usr/bin/lsgroup: nawk: command not found
ypcat: can't get local yp domain: Local domain name not set


I anybody familiar with these commands (I found no man pages)? Is there another way to list users & groups?
Sponsored Links
    #2  
Old 06-16-2004
djsal djsal is offline
Registered User
 
Join Date: Apr 2004
Last Activity: 7 April 2008, 10:31 AM EDT
Location: Long Island Ny
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Users are in /etc/passwd....

cat /etc/passwd | awk -F: '{print $1" ---> "$4}'

will return all users and which group they are in.
Sponsored Links
    #3  
Old 06-16-2004
jalburger jalburger is offline
Registered User
 
Join Date: Sep 2002
Last Activity: 25 October 2011, 4:25 PM EDT
Posts: 77
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks! Looks like I can also use /etc/group to get a listing of groups.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Users in multiple groups? hansokl UNIX for Dummies Questions & Answers 2 11-25-2011 10:47 AM
List users and groups m3y UNIX for Dummies Questions & Answers 2 05-03-2011 12:35 PM
Removing users from groups the_red_dove Solaris 11 10-29-2009 12:36 AM
users and groups sammet UNIX for Dummies Questions & Answers 1 12-06-2007 10:52 AM
Users and groups rsanz Security 2 08-05-2002 02:46 PM



All times are GMT -4. The time now is 03:58 AM.