| 1 |
.\" Copyright (c) 1993 Michael Haardt ([email protected]), |
| 2 |
.\" Fri Apr 2 11:32:09 MET DST 1993 |
| 3 |
.\" |
| 4 |
.\" SPDX-License-Identifier: GPL-2.0-or-later |
| 5 |
.\" |
| 6 |
.\" Modified Sun Jul 25 11:06:34 1993 by Rik Faith ([email protected]) |
| 7 |
.\" Corrected Mon Oct 21 17:47:19 EDT 1996 by Eric S. Raymond ([email protected]) |
| 8 |
.TH nologin 5 2024-05-02 "Linux man-pages 6.9.1" |
| 9 |
.SH NAME |
| 10 |
nologin \- prevent unprivileged users from logging into the system |
| 11 |
.SH DESCRIPTION |
| 12 |
If the file \fI/etc/nologin\fP exists and is readable, |
| 13 |
.BR login (1) |
| 14 |
will allow access only to root. |
| 15 |
Other users will |
| 16 |
be shown the contents of this file and their logins will be refused. |
| 17 |
This provides a simple way of temporarily disabling all unprivileged logins. |
| 18 |
.SH FILES |
| 19 |
.I /etc/nologin |
| 20 |
.SH SEE ALSO |
| 21 |
.BR login (1), |
| 22 |
.BR shutdown (8) |