Debian Codegraph @

upstream/debian-unstable/man5/nologin.5

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: GPL-2.0-or-later
4 .\"
5 .TH nologin 5 2025-05-17 "Linux man-pages 6.18"
6 .SH NAME
7 nologin \- prevent unprivileged users from logging into the system
8 .SH DESCRIPTION
9 If the file
10 .I /etc/nologin
11 exists and is readable,
12 .BR login (1)
13 will allow access only to root.
14 Other users will
15 be shown the contents of this file and their logins will be refused.
16 This provides a simple way of temporarily disabling all unprivileged logins.
17 .SH FILES
18 .I /etc/nologin
19 .SH SEE ALSO
20 .BR login (1),
21 .BR shutdown (8)