What does `chage` control?
IntermediateConceptPermissions, Users & sudo
Answer
Password ageing fields in /etc/shadow:
sudo chage -M 90 -m 1 -W 14 alice # max 90 days, min 1, warn 14 days before
sudo chage -d 0 alice # force password change at next login
sudo chage -E 2026-12-31 contractor # account expiry date
Defaults for new users come from PASS_MAX_DAYS etc. in /etc/login.defs.
More on Permissions, Users & sudo
Explain the rwx permission model for files and directories.BeginnerHow does octal notation work in chmod?BeginnerWhat does chown do and who can run it?IntermediateWhat is umask and how is the final permission calculated?IntermediateWhat is SUID and give a real example?IntermediateWhat does SGID do on files versus directories?Intermediate