QuestionQ15

VerifiedUsers and Groups

Which commands can be used to modify a user account's aging information (password expiration settings)?

Choose three
Explanation

Account aging data—such as password expiration date, minimum and maximum password age, warning period, and inactivity period—is stored in /etc/shadow. The 'chage' command is purpose-built for managing these aging fields. The 'usermod' command can also modify account expiration (-e) and inactivity (-f) settings. The 'passwd' command supports aging-related options (-x, -n, -w, -i) to set maximum, minimum, warning, and inactivity periods. In contrast, 'chattr' modifies file attributes on the filesystem and has nothing to do with user accounts, while 'chsh' only changes a user's default login shell, not aging data.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!