1

I have a Solaris 8 2/02 SPARC test server that has an issue with the root account. I am able to log in with this account but every time I do, I am met with this message...

WARNING: Your password has expired. If you have cron jobs, they may fail. Please change your password at your earliest convenience.

I have tried changing the password. However, the message still appears when logging in. I also do not want the account to expire. So after I changed the password, I also ran the following command...

passwd -x -1 root

This disables password aging on the account. I confirmed in /etc/shadow that it has been disabled.

I am not sure why this message still appears but it is causing my cron jobs not to run. Any help with this matter is greatly appreciated!

1 Answers1

0
  1. edit /etc/default/passwd
  2. put these 2 values empty:

    MAXWEEKS= MINWEEKS=

save, reboot, try again

olivierg
  • 494
  • 1
  • 6
  • 24
  • I tried what you said and blanked out the MAXWEEKS and MINWEEKS in /etc/default/passwd. Proceeded with reboot. I still got the warning upon logging in as root. I changed the password and checked /etc/shadow to make sure that password expiry had not been turned back on for root, it wasn't. Logged out of the server and back in but I am still getting the warning. I appreciate the help. – sudosysadmin Jun 14 '17 at 19:29