Login incorrect via getty
Hi all,
I try to setup a small Debian system running on command line. Remote access shall be possible via ssh (for now also telnet) and a serial connected minicom via getty. I need the serial access as fallback in case the network is down. As long as the package adduser is not installed, I can login as root via telnet and getty without problem. But from the moment "adduser" is installed with apt-get, the serial root login always fails after entering the right password with the message "Login incorrect". Even de-installing "adduser", or using a brand new "adduser test" user, don't help anymore... When installing and using SSH it allows to login successfully, like telnet. BTW: A dangerous behavior I observed with telnet: When I 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 /var/log/messages adds a line if login with su, but nothing when fails with getty Here is my inittab: Code:
# /etc/inittab: init(8) configuration. Code:
password [success=1 default=ignore] pam_unix.so obscure sha512 Code:
console Code:
any hints where I could search for this problem??? |
well ssh usually defaults to not allowing root login. Check out /etc/ssh/sshd_config to change that setting under
Code:
PermitRootLogin Code:
# service sshd restart |
SSH is not the problem, I have problems with the terminal connected via RS232, tty and getty.
It rejects all login tries with root and other user-ids... How do getty authenticate the entered password, which files are used? Thanks Achim |
SOLVED: Login incorrect via getty
A small hint from Geert that getty uses "login" to authenticate, 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 updates of the config files /etc/login.defs - now it works. Thanks a lot to Geert |
All times are GMT -5. The time now is 09:30 PM. |