How to force an AIX password

Sometimes, password cannot be changed, or the system requests an immediate change while the user would like to keep the same password... :-(

Here are three commands to force a password to be respected and kept by an AIX system:

echo "account:password" > ./pass.tmp
cat ./pass.tmp | chpasswd
pwdadm -f NOCHECK account

This is a very handy way of forcing a password to be set for a given account.

Of course, you need to replace account with the user login and password with the desired password... But you already knew that, right? ;-)

All my thanks to CZO for this tip!