Answer is A. The current login shell is set to /bin/nologin which, you can guess, doesn't allow the user to login when this is set. The login shell needs changed to /bin/bash to allow login.
The command usermod -s /bin/bash joe changes the login shell of the user named "joe" to "/bin/bash".
Explanation:
usermod is a command in Linux used to modify user account details.
-s /bin/bash is an option used with the usermod command to specify the new login shell for the user. In this case, the login shell is changed to "/bin/bash".
"joe" is the username of the user whose account is being modified.
Changing the login shell of a user can be useful in cases where a different shell is required for a particular user. In this case, the user "joe" will now use the Bash shell as their default shell when they log in.
upvoted 4 times
...
This section is not available anymore. Please use the main Exam Page.XK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
POGActual
10 months, 3 weeks agolinux_admin
11 months, 4 weeks ago