What Is Nologin in Linux?
Contents

nologin is a per-account way to disable login (usually used for system accounts like http or ftp). nologin(8) uses /etc/nologin. txt as an optional source for a non-default message, the login access is always refused independently of the file.

What is Nologin Shell Linux?

DESCRIPTION top. nologin displays a message that an account is not available and exits non-zero. It is intended as a replacement shell field to deny login access to an account. If the file /etc/nologin. txtexists, nologin displays its contents to the user instead of the default message.

What is bin false?

/bin/false is just a binary that immediately exits, returning false, when it’s called, so when someone who has false as shell logs in, they’re immediately logged out when false exits.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest