shadow-maint / shadow

Upstream shadow tree
Other
305 stars 232 forks source link

Can the chage command be used to set the validity period of the root account password? #898

Open qsW-git opened 9 months ago

qsW-git commented 9 months ago

I run the chage -m command to set the minimum validity period of the root password to 7, and the chage -l command indicates that the configuration is successful. But I can still change the root password using the passwd command.Is the chage command invalid for the root user? image