Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-29-2005, 01:03 PM   #1
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?


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

Rep: Reputation: 46
hi there,
can help..
Old 09-29-2005, 04:45 PM   #3
Registered: May 2005
Location: Greece
Posts: 427

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

If you try
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.


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:44 AM.

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