XK0-005 · Question #353
A systems administrator is tasked with changing the default shell of a system account in order to disable iterative logins. Which of the following is the BEST option for the administrator to use as…
The correct answer is A. /sbin/nologin. In order to limit the login we can add /bin/false to the end of the string (in the file /etc/passwd ), thus we will have a return code = 1 (when the user tries to open the terminal it will close Another method, in the same way, we add /sbin/nologin (in this case I will have the…
Question
A systems administrator is tasked with changing the default shell of a system account in order to disable iterative logins. Which of the following is the BEST option for the administrator to use as the new shell?
Options
- A/sbin/nologin
- B/bin/sh
- C/sbin/setenforce
- D/bin/bash
How the community answered
(22 responses)- A86% (19)
- B9% (2)
- D5% (1)
Explanation
In order to limit the login we can add /bin/false to the end of the string (in the file /etc/passwd ), thus we will have a return code = 1 (when the user tries to open the terminal it will close Another method, in the same way, we add /sbin/nologin (in this case I will have the message "This account is currently not available")
Topics
Community Discussion
No community discussion yet for this question.