---

How to Block or Disable Normal User Logins in Linux

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.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis