nerdexam
Linux_Foundation

LFCS · Question #488

Which of the following commands can be used to change a user's account aging information? (Select THREE).

The correct answer is A. usermod B. passwd D. chage. The usermod, passwd, and chage commands can all be used to modify various aspects of a user's account aging information, including password expiration and account validity.

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

Question

Which of the following commands can be used to change a user's account aging information? (Select THREE).

Options

  • Ausermod
  • Bpasswd
  • Cchattr
  • Dchage
  • Echsh

How the community answered

(25 responses)
  • A
    92% (23)
  • C
    4% (1)
  • E
    4% (1)

Why each option

The `usermod`, `passwd`, and `chage` commands can all be used to modify various aspects of a user's account aging information, including password expiration and account validity.

AusermodCorrect

The `usermod` command can modify several user account attributes, including setting the account expiration date (`-e`) and adjusting password aging parameters indirectly or through related options.

BpasswdCorrect

The `passwd` command, in addition to allowing users to change their password, also provides options (e.g., `-x`, `-n`, `-w`, `-i`) for administrators to set password aging policies like maximum password age, minimum password age, warning days, and inactive days.

Cchattr

The `chattr` command is used to change file attributes on a Linux filesystem, such as making a file immutable, and has no functionality related to user account or password aging.

DchageCorrect

The `chage` command (change age) is specifically designed for managing user password aging information, allowing administrators to set the last password change date, minimum and maximum password age, warning period, inactivity period, and the account expiration date.

Echsh

The `chsh` command is used to change a user's login shell, which is unrelated to account aging information.

Concept tested: User account aging management

Topics

#User management#Password aging#Account aging#Linux commands

Community Discussion

No community discussion yet for this question.

Full LFCS Practice