1NOLOGIN(8)                   System Administration                  NOLOGIN(8)
2
3
4

NAME

6       nologin - politely refuse a login
7

SYNOPSIS

9       nologin [-V] [-h]
10

DESCRIPTION

12       nologin displays a message that an account is not available and exits
13       non-zero. It is intended as a replacement shell field to deny login
14       access to an account.
15
16       If the file /etc/nologin.txt exists, nologin displays its contents to
17       the user instead of the default message.
18
19       The exit status returned by nologin is always 1.
20

OPTIONS

22       -c, --command command
23
24       --init-file
25
26       -i --interactive
27
28       --init-file file
29
30       -i, --interactive
31
32       -l, --login
33
34       --noprofile
35
36       --norc
37
38       --posix
39
40       --rcfile file
41
42       -r, --restricted
43
44       These shell command-line options are ignored to avoid nologin error.
45
46       -h, --help
47           Display help text and exit.
48
49       -V, --version
50           Print version and exit.
51

NOTES

53       nologin is a per-account way to disable login (usually used for system
54       accounts like http or ftp). nologin uses /etc/nologin.txt as an
55       optional source for a non-default message, the login access is always
56       refused independently of the file.
57
58       pam_nologin(8) PAM module usually prevents all non-root users from
59       logging into the system. pam_nologin(8) functionality is controlled by
60       /var/run/nologin or the /etc/nologin file.
61

HISTORY

63       The nologin command appeared in 4.4BSD.
64

AUTHORS

66       Karel Zak <kzak@redhat.com>
67

SEE ALSO

69       login(1), passwd(5), pam_nologin(8)
70

REPORTING BUGS

72       For bug reports, use the issue tracker at
73       https://github.com/util-linux/util-linux/issues.
74

AVAILABILITY

76       The nologin command is part of the util-linux package which can be
77       downloaded from Linux Kernel Archive
78       <https://www.kernel.org/pub/linux/utils/util-linux/>.
79
80
81
82util-linux 2.38                   2022-02-17                        NOLOGIN(8)
Impressum