ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 138 - XK0-005 discussion

Report
Export

Joe, a user, is unable to log in to the Linux system Given the following output:

Which of the following command would resolve the issue?

A.
usermod -s /bin/bash joe
Answers
A.
usermod -s /bin/bash joe
B.
pam_tally2 -u joe -r
Answers
B.
pam_tally2 -u joe -r
C.
passwd -u joe
Answers
C.
passwd -u joe
D.
chage -E 90 joe
Answers
D.
chage -E 90 joe
Suggested answer: B

Explanation:

Based on the output of the image sent by the user, Joe is unable to log in to the Linux system because his account has been locked due to too many failed login attempts. The pam_tally2 -u joe -r command will resolve this issue by resetting Joe's failed login counter to zero and unlocking his account. This command uses the pam_tally2 module to manage user account locking based on login failures. The usermod -s /bin/bash joe command will change Joe's login shell to /bin/bash, but this will not unlock his account. The passwd -u joe command will unlock Joe's password if it has been locked by passwd -l joe, but this will not reset his failed login counter or unlock his account if it has been locked by pam_tally2. The chage -E 90 joe command will set Joe's account expiration date to 90 days from today, but this will not unlock his account or reset his failed login counter. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 18: Securing Linux Systems, page 537.

asked 02/10/2024
Christopher Castillo
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first