exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 157 discussion

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

A user has been locked out of an account due to too many failed password attempts. Which of the following commands will unlock the user's account?

  • A. pam_tally2 --user=user --reset
  • B. passwd -u user -G root
  • C. usermod -u user -G root
  • D. chage -1 user=user --reset
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
DiaaEmara
2 years, 5 months ago
A Let’s now unlock baeldung: # pam_tally2 --user baeldung --reset To unlock such user account in Linux, just use --unlock with usermod with the username: ~]# usermod --unlock user1 OR just go ahead and manually remove that exclamation mark from the user1 entry in /etc/shadow file and re-verify the user account status: ~]# passwd --status user1
upvoted 1 times
DiaaEmara
2 years, 5 months ago
https://www.baeldung.com/linux/unlocking-account-failed-attempts https://www.golinuxcloud.com/linux-unlock-user-account/#3_Unlock_user_account_when_account_is_locked_using_usermod
upvoted 1 times
...
...
examtopics_htc
2 years, 6 months ago
Selected Answer: B
Agreed, it's B. passwd -u or usermod -U
upvoted 2 times
...
xeun88
2 years, 7 months ago
export TZ=America/Los_Angeles
upvoted 1 times
...
sargeholik
2 years, 7 months ago
Selected Answer: B
it's B To unlock: • passwd -u {user name} • usermod -U {user name}
upvoted 2 times
...
xeun88
2 years, 7 months ago
pam_tally2 --user=user --reset is use to unlock ssh failed login. usermod -u user --can be use to unlock user account once its lock
upvoted 2 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