nologin (8) ( FreeBSD man: Команды системного администрирования )
nologin (8) ( Русские man: Команды системного администрирования )
nologin (8) ( Linux man: Команды системного администрирования )
BSD mandoc
NAME
nologin
- disallow logins
DESCRIPTION
Programs such as
login(1)
disallow logins if the
file exists.
The programs display the contents of
to the user if possible and interrupt the login sequence.
This makes it simple to temporarily prevent incoming logins systemwide.
To disable logins on a per-account basis,
investigate
nologin(8).
SECURITY
The
file is ignored for user root by default.
IMPLEMENTATION NOTES
The
feature is implemented through
login.conf5,
which allows to change the pathname of the
file and to extend the list of users
exempt from temporary login restriction.
PAM-aware programs can be selectively configured to respect
using the
pam_nologin8
module via
pam.conf5.
The
file will be removed at system boot if it resides in
/var/run
and
cleanvar_enable
is set to
``YES
''
in
rc.conf5,
which is default.
Therefore system reboot can effectively re-enable logins.