exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 235 discussion

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

A user is unable to log on to a Linux workstation. The systems administrator executes the following command:



The command results in the following output:



Which of the following should the systems administrator execute to fix the issue?

  • A. chown -R user1:user1 /home/user1
  • B. sed -i '/:::/::/g' /etc/shadow
  • C. chgrp user1:user1 /home/user1
  • D. passwd -u user1
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
makuziker
Highly Voted 8 months, 4 weeks ago
Selected Answer: D
The exclamation mark at the beginning of the user's hashed password indicates that the account is locked. The user may not log in with this password. This is typically used to temporarily disable an account. You can unlock the account by setting a new password for the user with `passwd`.
upvoted 6 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago