How do I display the local users on redhat?
blackrhino last edited by blackrhino
Also see: lslogins - display information about known users in the system
You can run
cat /etc/passwdor in a more presentable way:
]$ lslogins UID USER PROC PWD-LOCK PWD-DENY LAST-LOGIN GECOS 0 root 126 root 1 bin 0 bin 2 daemon 0 daemon 3 adm 0 adm 4 lp 0 lp 5 sync 0 sync ... ... ...
lsloginhas the added benefit of seeing which local users have processes running, password lock/deny and when the user was last logged in.
© Lightnetics 2023