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 code returned by nologin is always 1.
20

OPTIONS

22       -h, --help
23              Display help text and exit.
24
25       -V, --version
26              Display version information and exit.
27

NOTES

29       nologin is a per-account way to disable login (usually used for  system
30       accounts  like  http  or  ftp).  nologin(8) uses /etc/nologin.txt as an
31       optional source for a non-default message, the login access  is  always
32       refused independently of the file.
33
34       pam_nologin(8) PAM module usually prevents all non-root users from log‐
35       ging into the system.  pam_nologin(8) functionality  is  controlled  by
36       /var/run/nologin or the /etc/nologin file.
37

AUTHORS

39       Karel Zak ⟨kzak@redhat.com⟩
40

SEE ALSO

42       login(1), passwd(5), pam_nologin(8)
43

HISTORY

45       The nologin command appeared in 4.4BSD.
46

AVAILABILITY

48       The  nologin command is part of the util-linux package and is available
49       from Linux Kernel Archive ⟨https://www.kernel.org/pub/linux/utils/util-
50       linux/⟩.
51
52
53
54util-linux                      September 2013                      NOLOGIN(8)
Impressum