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?
I can see users whose shells are set to
/etc/passwd, does that mean they cannot login?
I also know that I can set the encrypted password of user to
/etc/shadow to disable an account, so the "disabled user" should also be treat as "cannot log in" user, right?