Help - Search - Members - Calendar
Full Version: Show a list of users
Linuxhelp > In The Community > General Discussion
topwop
I took over a linux box and need to know the list of users so I can manage them and delete unwanted or unused users. Any suggestions?
Hemant
how abt: "cat /etc/passwd/|more"
topwop
Ok I typed cat /etc/passwd | more and got a lot of output to my screen. I think I was able to determine the users. Thank you. is there a way to see when a user last logged on either locally or using ssh?
michaelk
For local users use the last command. See man pages for details
For ssh users check the /var/log/auth/info file.
Robert83
CODE
lastlog


That is also usefull smile.gif

Sincerely
Robert B.
g33k
To get a list of users *only* try :
CODE
cat /etc/passwd | cut -d ":" -f 1 -
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.