1Z0-100 · Question #29
Examine the extract of the /etc/nologin file and the /etc/pam.d/login file on server1: [root@server1 ~] # cat /etc/nologin bob smith [root@server1 ~] # cat /etc/pam.d/login…
The correct answer is A. Only the root user can log in to the system. auth required pam_nologin.so -- This is the final authentication step. It checks whether the /etc/nologin file exists. If it exists and the user is not root, authentication fails. The /etc/nologin file contains the message displayed to users attempting to log on to a machine in…
Question
Examine the extract of the /etc/nologin file and the /etc/pam.d/login file on server1:
[root@server1 ~] # cat /etc/nologin bob smith [root@server1 ~] # cat /etc/pam.d/login accountrequiredpam_nologin.so accountincludesystem-auth Which statement is true about users?
Options
- AOnly the root user can log in to the system.
- BOnly users root bob and smith would be unable to log in to the system.
- CAll users, including the root user, would be permitted to log in to the system.
- DAll users, including the root user, would be unable to log in to the system.
How the community answered
(41 responses)- A73% (30)
- B5% (2)
- C15% (6)
- D7% (3)
Explanation
auth required pam_nologin.so -- This is the final authentication step. It checks whether the /etc/nologin file exists. If it exists and the user is not root, authentication fails. * The /etc/nologin file contains the message displayed to users attempting to log on to a machine in the process of being shutdown. * the login program defines its service name as login and installs the /etc/pam.d/login PAM configuration file.
Topics
Community Discussion
No community discussion yet for this question.