nerdexam
Linux_Foundation

LFCS · 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. To modify a user's password expiry information, administrators can use commands like usermod, passwd, and chage.

Submitted by rania.sa· Apr 18, 2026User and Group Management

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

(48 responses)
  • A
    85% (41)
  • C
    10% (5)
  • E
    4% (2)

Why each option

To modify a user's password expiry information, administrators can use commands like `usermod`, `passwd`, and `chage`.

AusermodCorrect

The `usermod` command allows administrators to modify various attributes of a user account, including password expiry settings using options like `-e` for the expiration date and `-f` for account inactivity after password expiration.

BpasswdCorrect

The `passwd` command, primarily used for changing passwords, also provides options for administrators to set password aging policies such as minimum and maximum password age (`-n`, `-x`) and warning period (`-w`).

Cchattr

The `chattr` command is used to change file system attributes on Linux files, not user account or password expiry information.

DchageCorrect

The `chage` command (change age) is specifically designed to manage user password expiry information, enabling administrators to set parameters like the last password change date, minimum/maximum password age, warning period, and account expiration date.

Echsh

The `chsh` command is used to change a user's login shell, which is unrelated to password expiry settings.

Concept tested: Linux user password expiry commands

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

Topics

#User management#Password expiry#passwd command#chage command

Community Discussion

No community discussion yet for this question.

Full LFCS Practice