Originally posted by: SystemAdmin
Hi,
The enclosed pwdrestrict.c checks that:
1. login is not same as password;
2. password is not same as previous password;
3. password contains at least one lower-case, upper-case, and digit character.
We don't actually use the third check; added for you. You can further modify the requirements to suit your site. Compile details are in the comments.
You can store the pwdrestrict executable in /usr/lib and change the default user to:
pwdchecks = pwdrestrict
or store it in /etc/security and change the default user to:
pwdchecks = /etc/security/pwdrestrict
Regards,
George
#AIX-Forum