CompTIA Linux+ (XK0-005) — Question 234

A junior developer is unable to access an application server and receives the following output:

[root@server1 ~]# ssh[email protected]
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Permission denied, please try again.
[email protected]'s password:
Account locked due to 4 failed logins
Account locked due to 5 failed logins
Last login: Mon Apr 22 21:21:06 2021 from 172.16.16.52

The systems administrator investigates the issue and receives the following output:

[root@server1 ~]# pam_tally2 --user=dev2
Login Failures Latest failure From
dev2 5 04/22/21 21:22:37 172.16.16.52

Which of the following commands will help unlock the account?

Answer options

Correct answer: D

Explanation

The correct command is 'pam_tally2 --user=dev2 --reset', which specifically resets the login failures for the user and unlocks the account. Options A and B do not reset the failed login attempts; they only display information. Option C contains a syntax error with the '+' sign, making it invalid.