System Administration Guide, Volume 2

How to Temporarily Disable User Logins

  1. Become superuser.

  2. Create the /etc/nologin file using an editor.


    # vi /etc/nologin
    
  3. Include a message regarding system availability.

  4. Close and save the file.

Example--Disabling User Logins

This example shows how to notify users of system unavailability.


# vi /etc/nologin
(Add system message here)
 
# cat /etc/nologin 
***No logins permitted.***

***The system will be unavailable until 12 noon.***