Discussion:
Login incorrect via getty
Achim Scheidl
2010-10-15 10:10:50 UTC
Permalink
Hi all,
I have problems during login over tty and getty, a login via ssh and telnet
works.

What could this be? How do getty authenticate different from a telnet/ssh
login?

The problem occurs with all accounts, root and new created ones. It asks for
login and password and then returns "Login incorrect"

During installation of the Emdebian Grip Squeeze on the ARM9 board it works
at the beginning. But at the moment the package "adduser" is installed, it
rejects getty login.

BTW: A dangerous behavior I observed with telnet:
When opening the connection via telnet, I'm immediately logged in as root -
without asking for a password! I set a password with passwd which also is
requested by SSH and getty (before the adduser installation) but not by
telnet?!?!?

The messages file don't got any entry.

Any idea?
Achim
Baurzhan Ismagulov
2010-10-15 10:24:34 UTC
Permalink
Post by Achim Scheidl
I have problems during login over tty and getty, a login via ssh and telnet
works.
Is the serial line listed in /etc/securetty?

With kind regards,
--
Baurzhan Ismagulov
http://www.kz-easy.com/
Achim Scheidl
2010-10-15 11:02:22 UTC
Permalink
Oh yes, the /etc/securetty contains the used /dev/ttymxc0 :

console
ttyS0
ttyS1
ttyS2
ttymxc0
ttymxc1
ttymxc2

and the /etc/inittab :

id:2:initdefault:
si::sysinit:/etc/init.d/rcS
~~:S:wait:/bin/sh
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
z6:6:respawn:/bin/sh
ca:12345:ctrlaltdel:/sbin/shutdown -t1 now
s0:23:respawn:/sbin/getty -L ttymxc0 115200 linux
s1:23:respawn:/sbin/getty -L ttymxc1 38400 linux
s2:23:respawn:/sbin/getty -L ttymxc2 38400 linux
F0:23:respawn:/sbin/getty -L tty0 38400 linux
Baurzhan Ismagulov
2010-10-15 11:09:28 UTC
Permalink
Nothing comes into my mind except looking at getty under gdb.

With kind regards,
--
Baurzhan Ismagulov
http://www.kz-easy.com/
Achim Scheidl
2010-10-15 13:06:28 UTC
Permalink
I have the gut-feeling that PAM is responsible for this problem, but didn't
debuged it (which is, BTW, not so easy on this small embedded controller
without development environment)

How do getty authenticate an entered userid/password if PAM is installed,
which files are checked?
Geert Stappers
2010-10-15 13:20:19 UTC
Permalink
Post by Achim Scheidl
I have the gut-feeling that PAM is responsible for this problem, but didn't
debuged it (which is, BTW, not so easy on this small embedded controller
without development environment)
How do getty authenticate an entered userid/password if PAM is installed,
which files are checked?
If I recall correct, it is 'login' that authenticates the user
and it is 'getty' that calls 'login'.

Hope this Helps



Groeten
Geert Stappers
Achim Scheidl
2010-10-15 15:02:52 UTC
Permalink
This small hint, solved my problem!!!!

I don't know exactly why, but something with the installation of "login" was
wrong. I reinstalled it with apt-get and accepted all updated of the config
files /etc/login.defs - now it works.

Thanks a lot to Geert
Achim

Loading...