How to Block or Disable Normal User Logins in Linux
By
Ravi Saive
In this article, we will describe how to block non-root users logins using /etc/nologin file as well as a nologin shell in Linux. We will look at how to set a message that explains to users what is actually happening.