exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 153 discussion

Actual exam question from CompTIA's XK0-005
Question #: 153
Topic #: 1
[All XK0-005 Questions]

Joe, a user, is unable to log in to the Linux system. Given the following output:

Which of the following commands would resolve the issue?

  • A. usermod -s /bin/bash joe
  • B. pam_tally2 -u joe -r
  • C. passwd -u joe
  • D. chage -E 90 joe
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
POGActual
10 months, 3 weeks ago
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.
upvoted 2 times
...
linux_admin
11 months, 4 weeks ago
Selected Answer: A
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
...
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.

SaveCancel
Loading ...