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…
Question
Options
- Ausermod
- Bpasswd
- Cchattr
- Dchage
- Echsh
How the community answered
(37 responses)- A73% (27)
- C8% (3)
- E19% (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
Community Discussion
No community discussion yet for this question.