Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get FULL user list on system

Status
Not open for further replies.

babeo

Technical User
Mar 30, 2000
398
CA
I want to list all users (online, offline, remote)
on the system. I already use:
- listusers
- who
- finger
- w
- dispuid
- logins
- rusers

however those commands above don't tell me what kind of access of each user in detail (may be 'logins' is the best command so far). Is there any other command rather than the above to display more info about ALL users on a system?
 
All your users will be listed in /etc/passwd. If you do something like 'cat /etc/passwd|wc -l', you'll get the total amount of users on your system. If you want the login names, you should invoke awk like 'cat /etc/passwd | awk -F: {'print $1'}'.
Hope it helps. regards
chenn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top