LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I list all users (even those not logged in) (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-list-all-users-even-those-not-logged-in-368183/)

steved 09-29-2005 01:03 PM

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

slackie1000 09-29-2005 01:49 PM

hi there,
checking
Code:

/etc/passwd
can help..
regards,
slackie1000

imitheos 09-29-2005 04:45 PM

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.


All times are GMT -5. The time now is 11:13 AM.