Services and User Management
An administrator wants every newly created local user to receive a default maximum password age of 60 days. Which file should be edited to set PASS_MAX_DAYS to 60?
Show the answer
Correct answerB. /etc/login.defs
PASS_MAX_DAYS in /etc/login.defs supplies the default maximum password age for accounts created afterward. /etc/default/useradd holds defaults such as INACTIVE and EXPIRE, not maximum password age, and /etc/shadow changes only existing accounts.