The question is simple, I want to list all the user accounts which can log in to my system, but I'm not sure if that all the users in /etc/passwd are "could login" users?
Details:
I can see users whose shells are set to /usr/sbin/nologin
and /bin/false
in /etc/passwd
, does that mean they cannot login?
I also know that I can set the encrypted password of user to *
or !
in /etc/shadow
to disable an account, so the "disabled user" should also be treat as "cannot log in" user, right?