Thursday, June 26, 2014

Linux commands on listing users

Some Linux Commands to see list of users


lastlog : All user's last login time

cat /etc/passwd : Display list of users

cat /etc/sudoers : List users with root privileges

getent group root : To see who is in group 'root'

getent group root wheel adm admin : To see who is in group 'root', 'wheel', 'adm', 'admin'

getent passwd 0 : To see who is UID 0
 

No comments:

Post a Comment