Login USERID length bug?

Login USERID length bug?

Post by Brian Wat » Wed, 14 Sep 1994 08:39:24



I think there is a serious problem in connection with 'login'.

Login doesn't work correctly when the login ID is > 8
characters AND you telnet or type 'login' at a console
*after* having logged in.
It gives a 'login incorrect' response.  This doesn't happen
when you login directly from the console.

I've had the same problem with kernels, 1.0.8, 1.1.35, and
1.1.45.

I'd be very happy if someone could shed light on this problem
because it is very embarrasing to tell people that they have
to restrict their login ID's to 8 characters (it smells of
MSDOS :=( ).

Thanx

 
 
 

Login USERID length bug?

Post by J » Thu, 15 Sep 1994 07:10:11


: I think there is a serious problem in connection with 'login'.

: Login doesn't work correctly when the login ID is > 8
: characters AND you telnet or type 'login' at a console
: *after* having logged in.

That's because user names are limited to 8 characters.

 
 
 

Login USERID length bug?

Post by Peter Mould » Sat, 17 Sep 1994 19:42:02



: : I think there is a serious problem in connection with 'login'.

: : Login doesn't work correctly when the login ID is > 8
: : characters AND you telnet or type 'login' at a console
: : *after* having logged in.

: That's because user names are limited to 8 characters.

You could set up a custom /bin/login program, but programs
like ls would still want to get an 8-character login name.

All in all it's better to restrict the username field in
/etc/passwd to 8 characters.
login may or may not treat deadfred and deadfreddy as equivalent,
but could easily be modified to do so.

(In all of the above, please substitute 'the set of programs that
present a login prompt, including login, ftpd, and various others'
for 'login' or '/bin/login'.)

Peter.