nerdexam
LPI

102-500 · Question #136

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

The correct answer is A. usermod B. passwd D. chage. usermod (-e, -f flags), passwd (-e, -n, -x, -w, -i flags), and chage (dedicated account aging tool) all modify password/account expiry settings stored in /etc/shadow. chage is the primary dedicated tool for this, while passwd and usermod include aging options as part of their…

Administrative Tasks

Question

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

Options

  • Ausermod
  • Bpasswd
  • Cchattr
  • Dchage
  • Echsh

How the community answered

(37 responses)
  • A
    73% (27)
  • C
    8% (3)
  • E
    19% (7)

Explanation

usermod (-e, -f flags), passwd (-e, -n, -x, -w, -i flags), and chage (dedicated account aging tool) all modify password/account expiry settings stored in /etc/shadow. chage is the primary dedicated tool for this, while passwd and usermod include aging options as part of their broader functionality.

Why the distractors are wrong:

  • chattr changes filesystem-level file attributes (immutable, append-only, etc.) - it has nothing to do with user accounts.
  • chsh changes a user's login shell, not any aging or expiry information.

Memory tip: Think "Aging By Date" - A= usermod, B = passwd, D = chage. The odd ones out (C and E) both start with "ch" but do completely different jobs: chattr = change attributes (filesystem), chsh = change shell.

Topics

#user-account-management#password-expiration#usermod#chage

Community Discussion

No community discussion yet for this question.

Full 102-500 Practice