ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 255 - XK0-005 discussion

Report
Export

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

cat /etc/shadow | grep user1

The command results in the following output:

user1 :! $6$QERgAsdvojadv4asdvaarC/9dj34GdafGVaregmkdsfa:18875:0:99999:7 :::

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

A.
chown -R userl:user1 /home/user1
Answers
A.
chown -R userl:user1 /home/user1
B.
sed -i '/ ::: / :: /g' /etc/shadow
Answers
B.
sed -i '/ ::: / :: /g' /etc/shadow
C.
chgrp user1:user1 /home/user1
Answers
C.
chgrp user1:user1 /home/user1
D.
passwd -u user1
Answers
D.
passwd -u user1
Suggested answer: D

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 file1.To unlock the password and allow the user to log in, the systems administrator should use the passwd command with the -u (unlock) option2.

asked 02/10/2024
Cornelia Bauer
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first