If you need certain accounts, like application accounts, to never expire you can use this…

chage -I -1 -m 0 -M 99999 -E -1 username

If you need to clear a users password history, remove the users entry in /etc/security/opasswd.

To clear a password prompt remove values from field 3 and 4 from user entry in /etc/shadow

About troyski

I'm a freelance UNIX engineer working in the UK. I'm married to Tina and between us we have six children. I'm a bit of an Apple fan boy, and all the Windows machines in the house are a thing of the past now.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation