Enforce Password Complexity on Solaris: Difference between revisions

From Peter Pap's Technowiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 8: Line 8:


   passwd -x -1 root
   passwd -x -1 root
This is however temporary!  If you shoudl change the root password after running this command, it will reset the counter and it will expire again.

Latest revision as of 23:43, 29 March 2015

Edit the following file:

 /etc/default/passwd

Follow the instructions in the file.

NOTE: This will apply to ALL users, including root! As such, if you don't keep track of it, the root password may expire and result in cron jobs not running etc. You can unexpire root but doing:

 passwd -x -1 root

This is however temporary! If you shoudl change the root password after running this command, it will reset the counter and it will expire again.