XK0-005 · Question #76
Joe, a user, is unable to log in to the server and contracts the systems administrator to look into the issue. The administrator examines the /etc/passwd file and discovers the following entry…
The correct answer is A. usermod -s /bin/bash joe. The clue here is "/bin/false" this will disable the user, what you need to do here is change /'bin/false, to' /'bin/bash". You can do this by typing "chsh -s /bin/bash username" or "usermod -s /bin/bash username"
Question
Joe, a user, is unable to log in to the server and contracts the systems administrator to look into the issue. The administrator examines the /etc/passwd file and discovers the following entry:
joe:x:505:505::/home/joe:/bin/false Which of the following commands should the administrator execute to resolve the problem?
Options
- Ausermod -s /bin/bash joe
- Cuseradd -s /bin/bash joe
- Dchage -E -1 joe
How the community answered
(38 responses)- A82% (31)
- C8% (3)
- D11% (4)
Explanation
The clue here is "/bin/false" this will disable the user, what you need to do here is change /'bin/false, to' /'bin/bash". You can do this by typing "chsh -s /bin/bash username" or "usermod -s /bin/bash username"
Topics
Community Discussion
No community discussion yet for this question.