Link to home
Start Free TrialLog in
Avatar of Viclyn
Viclyn

asked on

Linux, RHEL 5 - password. Only 8 characters are being seen

I changed a password to a more complex password. But only the first 8 characters are recognized.

For example:

MyPassword437882

...if you just type

MyPasswo

...it gets you in.

How do I fix this on new and/or existing accounts?
Avatar of simon3270
simon3270
Flag of United Kingdom of Great Britain and Northern Ireland image

That's very "old school"!  That behaviour was removed from most Linuxes in 2000 or so.

Have some of the entries in /etc/pam.d been removed?  Or if you haven't got pam.d, is there anything in /etc/pam.conf which might limit the checking of passwords?
Avatar of Viclyn
Viclyn

ASKER

I don't see a pam.conf file, but I do have a pam.d directory. I'm not sure what needs to be modified or if anything was removed. To the best of my knowledge, nothing was removed.
I don't have a RHEL 5 machine handy, but on RHEL 6 I have:
[root@ms1 ~]# ls /etc/pam.d/
atd          eject                other             reboot        screen             ssh-keycat            system-auth
chfn         fingerprint-auth     passwd            remote        smartcard-auth     su                    system-auth-ac
chsh         fingerprint-auth-ac  password-auth     rhn_register  smartcard-auth-ac  subscription-manager
config-util  halt                 password-auth-ac  run_init      smtp               sudo
crond        login                polkit-1          runuser       smtp.postfix       sudo-i
cvs          newrole              poweroff          runuser-l     sshd               su-l
[root@ms1 ~]# 

Open in new window

SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
+1 for the "Making changes to PAM can cause a system to become inaccessible." - when I was checking this, I moved the contents of /etc/pam.d to see what would happen.  Unfortunately I did it on my laptop, rather than the Virtual Machine I thought I was working in, and found that sudo and su stopped working.  i had to boot with a live CD to allow me to move the contents back to get a working system!
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial