What is the difference between /sbin/nologin and /bin/false?
- by Michael Hampton
I have often heard it recommended that a user account should be disabled by setting its shell to /bin/false. But, on my existing Linux systems, I see that a great number of existing accounts (all of them service accounts) have a shell of /sbin/nologin instead.
I see from the man page that /sbin/nologin prints a message to the user saying the…