nerdexam
CompTIA

LX0-104 · Question #276

Which of the following commands can an administrator use to change a user's password expiry information? (Select THREE).

The correct answer is A. usermod B. passwd D. chage. Administrators can modify a user's password expiry information using the usermod, passwd, or chage commands.

Administrative Tasks

Question

Which of the following commands can an administrator use to change a user's password expiry information? (Select THREE).

Options

  • Ausermod
  • Bpasswd
  • Cchattr
  • Dchage
  • Echsh

How the community answered

(70 responses)
  • A
    89% (62)
  • C
    7% (5)
  • E
    4% (3)

Why each option

Administrators can modify a user's password expiry information using the `usermod`, `passwd`, or `chage` commands.

AusermodCorrect

The `usermod` command can be used with options like `-e` (expire date) or `-f` (inactive after password expires) to modify a user's password expiry settings.

BpasswdCorrect

The `passwd` command, when executed by the root user, allows manipulation of password aging parameters using options such as `-x` (maximum days), `-n` (minimum days), or `-i` (inactive days).

Cchattr

`chattr` is used to change file attributes on a Linux file system (e.g., making a file immutable), and it has no functionality related to user password expiry.

DchageCorrect

The `chage` command is specifically designed for changing user password aging information, providing detailed control over expiry dates, minimum/maximum days, and warning periods with options like `-E`, `-M`, `-m`, `-W`, and `-I`.

Echsh

`chsh` is used to change a user's login shell, not their password expiry or aging information.

Concept tested: User password aging and expiry management

Source: https://man7.org/linux/man-pages/man1/chage.1.html

Topics

#password expiry#user management#usermod command#passwd command

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice