Interview Prep/Linux/Permissions, Users & sudo

What are the `nologin` and `false` shells for?

BeginnerConceptPermissions, Users & sudo
Answer

Both prevent interactive login for service accounts. /usr/sbin/nologin prints "This account is currently not available" and exits; /bin/false exits silently. Neither prevents processes from running as that user, and SSH port forwarding may still work unless sshd restricts it.

All Linux questions Roadmap: Linux

More on Permissions, Users & sudo