nerdexam
Linux_Foundation

LFCS · Question #74

Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

The correct answer is A. usermod B. passwd D. chage. The usermod, passwd, and chage commands are used to manage a user's account aging information, such as password expiry and inactivity periods.

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

Question

Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

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 are used to manage a user's account aging information, such as password expiry and inactivity periods.

AusermodCorrect

The `usermod` command can modify various user account attributes, including password aging information like expiration dates and inactivity periods, using options such as `-e` (expire date) and `-f` (inactivity period).

BpasswdCorrect

The `passwd` command, in addition to changing a user's password, also has options (e.g., `-x` for maximum password age, `-w` for warning period) to set password aging parameters for a user.

Cchattr

The `chattr` command is used to change file attributes on a Linux file system (e.g., immutable, append-only), not user account aging information.

DchageCorrect

The `chage` command is specifically designed to change user password aging information, allowing administrators to set password expiry dates, minimum/maximum days between changes, and warning periods.

Echsh

The `chsh` command is used to change a user's login shell, and it does not manage account aging information.

Concept tested: User account aging management

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

Topics

#User account management#Account aging#Password expiration#Command-line tools

Community Discussion

No community discussion yet for this question.

Full LFCS Practice