How do I display the local users on redhat?
-
Also see: lslogins - display information about known users in the system
You can run
cat /etc/passwd
or 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 ... ... ...
lslogin
has the added benefit of seeing which local users have processes running, password lock/deny and when the user was last logged in.
© Lightnetics 2024