- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Weird Telnet problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 04:59 PM
07-19-2005 04:59 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 05:05 PM
07-19-2005 05:05 PM
Re: Weird Telnet problem
WHat's the entry for telnet in /etc/inetd.conf look like?
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 05:05 PM
07-19-2005 05:05 PM
Re: Weird Telnet problem
check /etc/securetty this file lists the tty sessions which are allowed for root login. by default these point only to tty1 to tty12 you may have to add /dev/pts/1, /dev/pts/2 entries in order to get it work
Regards,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 05:05 PM
07-19-2005 05:05 PM
Re: Weird Telnet problem
if your system is trusted and you have exceeded your login retries, you may have to go to the console to unlock root account as well.
hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 05:16 PM
07-19-2005 05:16 PM
Re: Weird Telnet problem
Inetd.conf entry is this:
=================================
telnet stream tcp6 nowait root /usr/lbin/telnetd telnetd
================================
I tried searching for the /etc/securetty file on both servers but it is not existing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 05:26 PM
07-19-2005 05:26 PM
Re: Weird Telnet problem
Also, for ssh and telnet are you using the same terminal emulator ? even if they are the same, are you sure their keyboard mapping profiles are the same for both telnet and ssh ? I have seen strange things happen when keyboard or terminal type set incorrectly. Better check early in the game than later.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 06:05 PM
07-19-2005 06:05 PM
Re: Weird Telnet problem
I am using terminal type HP for both ssh and telnet but only ssh is working. I have checked the keyboard mapping and it is the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 06:46 PM
07-19-2005 06:46 PM
Re: Weird Telnet problem
Probably unconnected, but I never trust the IPv6 implementation on 11.23, so I'd take it out of the equation by changing the line in /etc/inetd.conf. simply replace 'tcp6' with just 'tcp' and then run 'inetd -c' to reload the configuration.
I don't think this is the problem though, as I would expect it to effect other users as well as root.
You could also turn on inetd logging by running inetd -l. Then see if you get any useful messages in the syslog.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 07:29 PM
07-19-2005 07:29 PM
Re: Weird Telnet problem
Turned on inetd logging and this is what I saw in syslog:
Jul 20 14:23:32 wbscsp02 sshd[12768]: Accepted keyboard-interactive/pam for root
from 10.10.21.164 port 3703 ssh2
Jul 20 14:24:12 wbscsp02 inetd[933]: Connection logging enabled
Jul 20 14:24:24 wbscsp02 inetd[12801]: registrar/tcp: Connection from wbscsp02 (
10.10.5.10) at Wed Jul 20 14:24:24 2005
Jul 20 14:24:43 wbscsp02 inetd[12802]: telnet/tcp: Connection from unknown (10.1
0.21.164) at Wed Jul 20 14:24:43 2005
Jul 20 14:25:03 wbscsp02 sshd[12804]: Accepted keyboard-interactive/pam for root
from 10.10.21.164 port 3725 ssh2
What do you make of this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 07:57 PM
07-19-2005 07:57 PM
Re: Weird Telnet problem
- you telnet from another host and get a login prompt, enetr root and hit return, enter the password and it return... then what happens? does it just disconnect or do you get any message at all?
Lets make sure that telnetd isn't something it shouldn't be also... what's the output of 'what /usr/lbin/telnetd'
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 08:26 PM
07-19-2005 08:26 PM
Re: Weird Telnet problem
/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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2005 08:46 PM
07-19-2005 08:46 PM
Re: Weird Telnet problem
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 05:16 PM
07-20-2005 05:16 PM
Re: Weird Telnet problem
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2005 05:29 PM
07-20-2005 05:29 PM
Solution# stty -a < /dev/ttyconf
min = 4; time = 0;
intr = DEL; quit = ^\; erase = #; kill = @
eof = ^D; eol = ^@; eol2
stop = ^S; start = ^Q; susp
werase
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2005 12:56 AM
07-21-2005 12:56 AM
Re: Weird Telnet problem
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2005 09:56 PM
07-22-2005 09:56 PM
Re: Weird Telnet problem
I changed the password and removed the @ then tried telnet. It's now working.
Thanks all for the help.