LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-29-2005, 01:03 PM   #1
steved
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
How do I list all users (even those not logged in)


I have checked out the man pages on w, who, finger and cannot find anything that will tell me all the users of a system. They all list logged on users.

How do I get a listing of all the users?

Is there a way to do this for an entire domain?

Thanks.

Steve
 
Old 09-29-2005, 01:49 PM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
hi there,
checking
Code:
/etc/passwd
can help..
regards,
slackie1000
 
Old 09-29-2005, 04:45 PM   #3
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 374

Rep: Reputation: 55
As slackie1000 mentioned the usernames exist in /etc/passwd.

If you try
Code:
cat /etc/passwd | cut -d ":" -f1
you will get all the names of the users in the system you want.
This also includes daemons/special accounts.
 
  


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
why so many logged in users? alagenchev Linux - Security 2 03-24-2005 06:19 PM
users who logged before czezz Solaris / OpenSolaris 1 11-24-2004 06:12 AM
No Users logged in X kaise_sose Linux - Software 2 10-19-2004 02:57 AM
Monitoring Logged In Users MadTurki Linux - Networking 6 01-22-2004 02:19 PM
how can i see list of logged on users? doublefailure Linux - General 6 09-10-2002 08:11 PM


All times are GMT -5. The time now is 12:01 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration