What file will temporarily prevent all users except root from logging into a system?

FILL BLANK
The presence of what file will temporarily prevent all users except root from logging into a system? (Specify the full name of the file, including path.)
A. /sbin/nologin

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “What file will temporarily prevent all users except root from logging into a system?

  1. /sbin/nologin is per-account set to a user in /etc/passwd

    https://man7.org/linux/man-pages/man8/nologin.8.html
    pam_nologin(8) PAM module usually prevents all non-root users
    from logging into the system. pam_nologin(8) functionality is
    controlled by /var/run/nologin or the /etc/nologin file

    Creating the /etc/nologin File
    Create this file to disallow user logins and notify users when a system will be unavailable for an extended period of time because of a system shutdown or routine maintenance.

  2. hi
    /etc/nologin to prevent all users excpt the root from loggin into the system.
    usermod -s /sbin/nologin username –> set the default shell for a specific user to nologin.

  3. hi
    /etc/nologin to prevent all users excpt the root from loggin into the system.
    usermod -s /sbin/nologin username –> set the default shell for a specific user to nologin.

  4. yes u are right.
    /sbin/nologin or /usr/sbin/nologin is to block the login for a single user.
    /etc/nologin block all user except root.
    But this file must be created

    10

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.