Username Length and Password Expiry

mark clarkson mcc21371 at gmail.com
Thu Mar 2 07:28:13 EST 2006


I am having a problem with usernames that are longer than 8 characters
on the following system types:

Solaris 8, Solaris 9
OpenSSH 4.2p1
OpenSSL 0.9.8a

When logging in with an SSH client like PuTTY, OpenSSH or SecureCRT,
the username is truncated when the password is asked to be changed.

Below is output from a PuTTY session when logging in to a system with
an expired password and a username that is 9 characters:

    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2006.03.01 10:55:48  
=~=~=~=~=~=~=~=~=~=~=~=
    login as: bclarkson

    bclarkson at sjc010ap02t's password:
    Last login: Wed Mar  1 10:55:05 2006 from hub5tv0951.fffc
    WARNING: Your password has expired.
    You must change your password now and login again!
    passwd: Changing password for bclarkso
    passwd: User unknown: bclarkso
    Permission denied

Notice the "n" at the end of the user name is dropped.

This works just fine using telnet as can be seen in the output below:

    SunOS 5.8

    login: bclarkson
    Password:
    Choose a new password.
    New Password:
    Re-enter new Password:
    telnet: password successfully changed for bclarkson
    Last login: Wed Mar  1 11:52:00 from 10.247.4.60

    $

Does anyone know of any fixes for this or if it is a bug?

Thank you,

Mark.




More information about the openssh-unix-dev mailing list