nerdexam
CompTIA

LX0-104 · 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. User account aging information, such as password expiration and account validity, can be modified using the usermod, passwd, and chage commands.

Administrative Tasks

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

(50 responses)
  • A
    88% (44)
  • C
    4% (2)
  • E
    8% (4)

Why each option

User account aging information, such as password expiration and account validity, can be modified using the `usermod`, `passwd`, and `chage` commands.

AusermodCorrect

The `usermod` command, with options like -e (expire date) or -f (inactive days), can modify various user account aging policies.

BpasswdCorrect

The `passwd` command, primarily used for changing passwords, also supports options like -x (max days) or -l (lock account) that affect password aging.

Cchattr

The `chattr` command is used to change file attributes on Linux filesystems, not user account aging information.

DchageCorrect

The `chage` command is specifically designed to change user password expiry information and account aging policies, offering detailed control over these settings.

Echsh

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

Concept tested: Linux user account aging management

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

Topics

#user account aging#usermod#passwd#chage

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice