nerdexam
CompTIA

XK0-005 · Question #1614

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…

The correct answer is D. passwd -u user1. The output shows that the user1 account has a locked password, indicated by the exclamation point (!) in the second field of the /etc/shadow file. To unlock the password and allow the user to log in, the systems administrator should use the passwd command with the -u (unlock)…

Troubleshooting

Question

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?

Options

  • Achown -R user1:user1 /home/user1
  • Bsed -i '/:::/::/g' /etc/shadow
  • Cchgrp user1:user1 /home/user1
  • Dpasswd -u user1

How the community answered

(45 responses)
  • A
    4% (2)
  • B
    13% (6)
  • C
    9% (4)
  • D
    73% (33)

Explanation

The output shows that the user1 account has a locked password, indicated by the exclamation point (!) in the second field of the /etc/shadow file. To unlock the password and allow the user to log in, the systems administrator should use the passwd command with the -u (unlock) option.

Topics

#Linux User Management#Account Locking#passwd command#Login Troubleshooting

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice