Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

my passwort for login into ssh has 16 characters. but I can login if I only type the first 8 carachters of the password ...

I did this in /etc/login.defs:

PASS_MAX_DAYS   99999
PASS_MIN_DAYS   0
PASS_MIN_LEN    16
PASS_WARN_AGE   7
PASS_MAX_LEN    16

But I can still login with the first 8 characters of my passwort. All 16 characters should be checked, how to do this?

share|improve this question
    
What version of Linux? –  Zoredache Feb 19 '12 at 9:38
3  
I suspect you're using DES password encryption, which only supports a maximum of 8 characters. –  Cry Havok Feb 19 '12 at 9:48
    
CentOS: 2.6.18-274.3.1.el5 this are the last lines of /etc/login.defs # Use MD5 or DES to encrypt password? Red Hat use MD5 by default. MD5_CRYPT_ENAB yes ENCRYPT_METHOD MD5 –  Danzzz Feb 19 '12 at 9:52
    
Restart the ssh daemon? –  ewwhite Feb 19 '12 at 13:47
    
@Danzzz Sure, but check what the password is stored as right now. If it's stored as DES, then it's got to validate as DES - which means truncating to 8 characters. –  Shane Madden Feb 19 '12 at 19:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.