1753835 Members
7570 Online
108806 Solutions
New Discussion юеВ

Re: Weird Telnet problem

 
SOLVED
Go to solution
shasha_1
Super Advisor

Re: Weird Telnet problem

Output of what...command

/usr/lbin/telnetd:
Copyright (c) 1983, 1986 Regents of the University of California.
$Revision: B11.23.0409LR


Everytime I try logging in, I am prompted for the user name, enter root and then hit enter. After that, I am asked for the password, I key-in the password and hit enter. After that, I am again prompted for the login, no error whatsoever.

Re: Weird Telnet problem

Hmmm - Are you seeing bad login attempts logged to /var/adm/btmp ? Check by running 'lastb -R'

Is this a trusted system?

What are the contents of /etc/default/security ?

Does the shell listed for root in /etc/passwd exist? Does the home directory listed for root in /etc/passwd exist?

HTH

Duncan


I am an HPE Employee
Accept or Kudo
Dmitry G. Spitsyn
Trusted Contributor

Re: Weird Telnet problem

Hi Donna !

Please look into the following files:

/etc/pam.conf
/etc/pam_user.conf (if applicable)

Also please check:

what /usr/bin/login

May be there is some problem with patches on your suystem.

BR,
Dmitry.

Ermin Borovac
Honored Contributor
Solution

Re: Weird Telnet problem

Does your password contain "#" or "@" characters? These characters have special meaning to the terminal driver.

# stty -a < /dev/ttyconf
min = 4; time = 0;
intr = DEL; quit = ^\; erase = #; kill = @
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp ; dsusp
werase ; lnext

To fix you can either exclude "#" and "@" from your password OR run the following command

# stty kill '^X' intr '^C' erase '^W' < /dev/ttyconf

These settings are not preserved across reboots so they will need to be placed in a startup script.
zhi wang_1
Advisor

Re: Weird Telnet problem

Donna,
You said you tried ssh and it worked. As far as I recall, to enable ssh you will have to "disable" telnet. After you comment out telnet you must run inetd -c to recompile the inetd.conf file. Similarly you will have to run it again if you "enabled" telnet for inetd.conf to take effect. Try it and hope that is what causing the problem.
shasha_1
Super Advisor

Re: Weird Telnet problem

Hi,

I changed the password and removed the @ then tried telnet. It's now working.

Thanks all for the help.