LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   Show users (https://www.linuxquestions.org/questions/general-10/show-users-417891/)

manomohan 02-21-2006 03:49 AM

Show users
 
How can i list out all the users in the system via command prompt or terminal ?

phil.d.g 02-21-2006 03:54 AM

Code:

who
some extra characters to make the message long enough

vharishankar 02-21-2006 04:03 AM

To get a list of currently logged in users, the command is (suprisingly) users.
Code:

users

baddah 10-10-2006 05:22 AM

Hi,i cant see the difference between users and who command.Both only show the users currently logged in.I am looking or a command to show all usernames,groupnames ,etc so that i can check if their might be a username i dont know of on a server.

Thanks for any reply.Cheers

jlliagre 10-10-2006 05:39 AM

Quote:

Originally Posted by baddah
Hi,i cant see the difference between users and who command.

users is from BSD, who is from SysV Unix.
Quote:

Both only show the users currently logged in.
Indeed
Quote:

I am looking or a command to show all usernames,groupnames ,etc so that i can check if their might be a username i dont know of on a server.
That wasn't your initial question.
A simple way would be "cat /etc/passwd", but that wouldn't take into account authentication made from different database (like NIS, LDAP, etc ...).

AnanthaP 10-10-2006 08:17 AM

(1) cat /etc/passwd is OK for <quote>on a server<UnQuote>
(2) contact your dba

Note that even background processes require a login - may be "anonymous"

End

jlliagre 10-10-2006 12:00 PM

Quote:

Originally Posted by AnanthaP
(1) cat /etc/passwd is OK for <quote>on a server<UnQuote>

What do you mean ?
Quote:

(2) contact your dba
These databases aren't usually handled by dbas but better by system administrators.
Quote:

Note that even background processes require a login - may be "anonymous"
Precisely all processes require a userid/groupid, however, they need not to be defined in /etc/passwd or anywhere.


All times are GMT -5. The time now is 04:10 AM.