nerdexam
CompTIA

LX0-104 · Question #476

Which commands can you use to change a user's password expiry information? (Choose Three)

The correct answer is A. usermod B. passwd D. chage. Several commands are available for managing user password expiration settings, allowing administrators to enforce security policies. These commands can modify various password attributes, including the maximum password age, warning period, and account expiration date.

Administrative Tasks

Question

Which commands can you use to change a user's password expiry information? (Choose Three)

Options

  • Ausermod
  • Bpasswd
  • Cchattr
  • Dchage
  • Echsh

How the community answered

(26 responses)
  • A
    88% (23)
  • C
    8% (2)
  • E
    4% (1)

Why each option

Several commands are available for managing user password expiration settings, allowing administrators to enforce security policies. These commands can modify various password attributes, including the maximum password age, warning period, and account expiration date.

AusermodCorrect

The usermod command can modify several user account attributes, including password expiration settings, using options like -e (expire date) or -f (inactive after password expiration).

BpasswdCorrect

The passwd command, when used by the root user or with appropriate permissions, can set a user's password and also modify its expiration information, such as forcing a password change on next login.

Cchattr

The chattr command is used to change file attributes on a Linux filesystem (e.g., making a file immutable), not to modify user account or password expiry information.

DchageCorrect

The chage command is specifically designed for changing user password expiry information, allowing modification of maximum password age, minimum age, warning period, and account expiration date.

Echsh

The chsh command is used to change a user's login shell, not their password expiry information.

Concept tested: User password expiry management

Source: https://man7.org/linux/man-pages/man8/usermod.8.html

Topics

#user management#password expiry#usermod#passwd#chage

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice