PAM_NOLOGIN(8) System Administrator's Manual PAM_NOLOGIN(8)NAMEpam_nologin - Disables login for all except root when /etc/nologin
exists
SYNOPSIS
/lib/security/pam_nologin
DESCRIPTIONpam_nologin is a PAM module that prevents users from logging into the
system when /etc/nologin exists. The contents of the /etc/nologin file
are displayed to the user. The pam_nologin module has no effect on the
root user's ability to log in.
OPTIONS
pam_login has no options.
MODULE SERVICES PROVIDED
auth _authentication and _setcred (blank)
RETURN CODESpam_nologin has the following return codes:
PAM_SUCCESS
Success: either the user is root or the /etc/nologin file does
not exist.
PAM_SERVICE_ERR
The module was unable to get the user name.
PAM_USER_UNKNOWN
The module cannot get the UID associated with this user.
PAM_AUTH_ERR
The user is not root and /etc/nologin exists, so the user is not
permitted to log in.
HISTORYpam_nologin was written by Michael K. Johnson.
SEE ALSOpam.conf(8), pam.d(8), pam(8), nologin(8).
AUTHOR
Emily Ratliff.
Linux 2.4 2003-03-21 PAM_NOLOGIN(8)