I am using RHEL 4. Currently maximum password length limit is set to 8 on my system.
Please tell what do i need to change to increase this limit to say 20. I changed the login.defs and included the following line -
"
PASS_MAX_LEN 20
"
but this dint work.
I further modified /etc/pam.d/system-auth file and added there too as-
I don't get it. My root password is almost twice as long, and mistyping any of the characters after the eighth makes a failed login. Unless this is some odd redhat-specific thing...
A lot of older versions of unix don't support more than 8 characters. HPUX 10.2 for example. Stevens 'Advanced Programming in the UNIX Environment' mentions it as well. Red Hat out of the box hashes a maximum of 8; here is a discussion explaining changing PAM etc. to increase the password length:
Are you trying a standard user account when you make these changes or a root user? In RH some password requirements don't work under root or sudo.
Create a standard user...Set your password minlen to 10...then log in as the user and try changing the password to an 8 character password. It should give an error message.