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.
Community Discussion