PAM_NOLOGIN(8)

NAME
pam_nologin - Disables login for all except root when /etc/nologin exists

SYNOPSIS
/lib/security/pam_nologin

DESCRIPTION

pam_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 CODES

pam_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.

HISTORY

pam_nologin was written by Michael K. Johnson.

SEE ALSO

pam.conf(8), pam.d(8), pam(8), nologin(8).

AUTHOR
Emily Ratliff.