What does the last field mean for bob?
bob:x:1001:1001:Bob:/home/bob:/usr/sbin/nologin
- bob cannot get an interactive shell
- bob has no home directory at all
- bob's password field is empty
- bob can only log in using his SSH keys
The last field is the login shell;
Play Linux CLI ▸
nologin politely refuses logins, typical for service accounts.