ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 175 - 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 commands 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:

The command pam_tally2 -u joe -r will resolve the issue of Joe being unable to log in to the Linux system. The pam_tally2 command is a tool for managing the login counter for the PAM (Pluggable Authentication Modules) system. PAM is a framework for managing authentication and authorization on Linux systems. PAM allows the administrator to define the rules and policies for accessing various system resources and services, such as login, sudo, ssh, or cron. PAM also supports different types of authentication methods, such as passwords, tokens, biometrics, or smart cards. PAM can be used to implement login restrictions, such as limiting the number of failed login attempts, locking the account after a certain number of failures, or enforcing a minimum or maximum time between login attempts. The pam_tally2 command can display, reset, or unlock the login counter for the users or hosts. The -u joe option specifies the user name that the command should apply to. The -r option resets the login counter for the user. The command pam_tally2 -u joe -r will reset the login counter for Joe, which will unlock his account and allow him to log in to the Linux system. This will resolve the issue of Joe being unable to log in to the Linux system. This is the correct command to use to resolve the issue. The other options are incorrect because they either do not unlock the account (usermod -s /bin/bash joe or passwd -u joe) or do not affect the login counter (chage -E 90 joe). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 17: Implementing Basic Security, page 517.

asked 02/10/2024
Babatunde Badiru
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first