nerdexam
Linux_Foundation

LFCS · 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 use usermod, passwd, and chage to manage a user's password expiry information.

Submitted by joshua94· Apr 18, 2026User and Group Management

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

(27 responses)
  • A
    93% (25)
  • C
    4% (1)
  • E
    4% (1)

Why each option

Administrators can use `usermod`, `passwd`, and `chage` to manage a user's password expiry information.

AusermodCorrect

The `usermod` command can modify various user account attributes, including password expiry settings using options like `-e` (expiration date) and `-f` (account inactive after password expiry).

BpasswdCorrect

The `passwd` command, while primarily for changing passwords, can also set password aging parameters like minimum/maximum days between changes, warning period, and inactive days with appropriate options.

Cchattr

The `chattr` command is used to change file system attributes on Linux files, such as making a file immutable, and has no relation to user password expiry.

DchageCorrect

The `chage` command is specifically designed to change user password aging information, allowing administrators to set the last password change date, expiry, and warning periods.

Echsh

The `chsh` command is used to change a user's login shell and does not manage any password expiry settings.

Concept tested: User password aging management

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

Topics

#User Management#Password Expiry#Account Management#Linux Commands

Community Discussion

No community discussion yet for this question.

Full LFCS Practice