Operating System - HP-UX
1855239 Members
4558 Online
104109 Solutions
New Discussion

Telnet and rlogin issue on HP-UX 11.00

 
Pawan_1
Frequent Advisor

Telnet and rlogin issue on HP-UX 11.00

Start Having the following issues, when using telnet and rlogin to a 11.0 system:

telnet smoc4257
Trying...
Connected to smoc4257.moc.ual.com.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON

HP-UX smoc4257 B.11.00 A 9000/800 (ta)

login: root
Password:
Login incorrect

That is : It does not prompt for the password and it takes a blank for the same and returns the next line i.e login incorrect.
26 REPLIES 26
Stephen Keane
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

Looks like you are getting a double CR when you type in the user name root. Thus telnet thinks you've entered a null password.
Stephen Keane
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

Just as a matter of interest, what do you get as output if yout type in stty

# stty

speed 9600 baud; -parity hupcl
intr = ^C; erase = ^H; kill = ^U;
eol2 = ^[; swtch ;
werase = ^W; lnext = ^V;
brkint -inpck -istrip icrnl ixoff onlcr
-iexten echo echoe echok
-echoke
Pawan_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

That sounds right, but where to turn it off, since have tried it with different terminals.
Pawan_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

Here is the output:

stty
speed 9600 baud; -parity hupcl
min = 1; time = 1; intr = ^C; erase = ^H; kill = ^U;
swtch ;
brkint -inpck -istrip icrnl ixoff onlcr
-iexten echo echoe echok
-echoctl -echoke
BONNAFOUS Jean Marc
Trusted Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

Hi,
It's seem that your 'Enter' key send double CR.
Make a CR on login without giving user name. Have you only a new line with login or two?

Only with telnet and rlogin? Only with this host?

Do you use a emulator to connect on this host? Is problem exist also if you use telnet from another Unix system?

If you use a emulator see his configuration for CR KEY.

Rgds
JMB
Si vous ne faites jamais de bétises, c'est que vous ne faites rien de difficile. Et ça c'est une grosse bétise.
Pawan_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

When you press enter at login prompt:

# telnet smoc4257
Trying...
Connected to smoc4257.moc.ual.com.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON

HP-UX smoc4257 B.11.00 A 9000/800 (ta)

login:
login:
login:

This is the only host having problem with telnet and rlogin. Am able to use ssh to connect and its working fine. Have tried it from Unix telnet/rlogin [ From same and different hosts] and Windows Terminal commands and same results.
Stephen Keane
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

Type in telnet host
then press the escape character (CTRL-])
to get to the telnet prompt, then type in status

telnet> status
Connected to hostname.
Operating in character-at-a-time mode.
Escape character is '^]'.
Local flow control on

What do you get?
Pawan_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

When typing:

telnet smoc4257, its going directly to the login prompt.

telnet smoc4257
Trying...
Connected to smoc4257.moc.ual.com.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON

HP-UX smoc4257 B.11.00 A 9000/800 (tb)

login:

Is there some other way to invoke the same.
Stephen Keane
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

It is not CTRL-J it is CTRL-] (right square bracket), sorry for the confusion.
Pawan_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

This is also happening with the password command:

passwd test
Changing password for test
New password:
Re-enter new password:
Passwd successfully changed

This is being done without any input being asked. Thks
Pawan_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

Here is the output:
# telnet smoc4257
Trying...
Connected to smoc4257.moc.ual.com.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON

HP-UX smoc4257 B.11.00 A 9000/800 (ta)

login:
telnet> status
Connected to smoc4257.moc.ual.com.
Operating in character-at-a-time mode.
Escape character is '^]'.
Local flow control on

Stephen Keane
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

Try the following

script your_file_name
telnet your_server
get out of telnet (CTRL-] and quit)
exit

Then xd -c your_file_name
Pawan_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

Here is the output:

0000000 S c r i p t s t a r t e d o
0000010 n T u e J a n 4 0 8 :
0000020 5 9 : 3 2 2 0 0 5 \n # t e l
0000030 n e t s m o c 4 2 5 7 \r \n T r
0000040 y i n g . . . \r \n C o n n e c t
0000050 e d t o s m o c 4 2 5 7 . m
0000060 o c . u a l . c o m . \r \n E s c
0000070 a p e c h a r a c t e r i s
0000080 ' ^ ] ' . \r \n L o c a l f l
0000090 o w c o n t r o l o n \r \n T
00000a0 e l n e t T E R M I N A L - S
00000b0 P E E D o p t i o n O N \r \n
00000c0 \r \n H P - U X s m o c 4 2 5 7
00000d0 B . 1 1 . 0 0 A 9 0 0 0 /
00000e0 8 0 0 ( t a ) \r \n \r \n l o g i
00000f0 n : \r \n t e l n e t > q u i
0000100 t \r \n C o n n e c t i o n c l
0000110 o s e d . \r \n # e x i t \r \n \n
0000120 s c r i p t d o n e o n T
0000130 u e J a n 4 0 8 : 5 9 :
0000140 5 4 2 0 0 5 \n
0000148
Stephen Keane
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

That's curious, I don't see any 'extra' \r or \n in there (I got similar results to you when I tried it). This suggests the problem is not with the return key itself.

You are having the problem when connecting to this one host using telnet/rlogin from various places?

Do you have the same problem if (when logged in to this host) you telnet back to itself?



Stephen Keane
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

Ignore the first part of my previous posting, you DO have extra \r \n characters in there, I must set my font size bigger :(
Pawan_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

Where is it comming from, since we have used different terminals.
Patrick Wallek
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

It is remotely possible that your passwd binary is bad or corrupt.

Here is output for my passwd binaries from an 11.0 system:

# ll /usr/bin/passwd /sbin/passwd
-r-sr-xr-x 1 root bin 229376 Nov 7 1997 /sbin/passwd*
-r-sr-xr-x 5 root bin 49152 May 23 2001 /usr/bin/passwd*
[ root@hqudb01:/opt/nickel ]
# what /sbin/passwd
/sbin/passwd:
$Revision: 80.6 $
CUPROS_IC22 //1
/ux/core/libs/libc/archive_pa1/libc.a_ID
Oct 1 1997 04:05:51
[ root@hqudb01:/opt/nickel ]
# what /usr/bin/passwd
/usr/bin/passwd:
$Revision: 82.10.1.5 $
PATCH_11_00: passwd.o 01/05/23
Stephen Keane
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

By different terminals, do you mean different dumb terminals all connected to the same server, or different terminals on different servers?

If you are using different terminals on different servers, that suggests that the problem lies with the one server. Are the network arrangements the same for this one server compared to the others? It looks like something is 'translating' your input before it reaches the server.

If you are using different terminals on different servers it suggests its not a keyboard issue. My best guess is a network problem (maybe a piece of network hardware being 'helpful'?
Sanjay_6
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

Hi Pawan,

Maybe this lin kon telnet troubleshooting could help,

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072193612

The itrc doc id is KBRC00014017.

If this is 11.0, Do you have Patch "PHNE_26096" installed. If not, install this patch.

Hope this helps.

regds


Pawan_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

-The passwd file is not corrupted and its matching with other 11.0 servers

-These are not dumb terminals and are Unix/Windows Servers/Clients

-We have couple of servers in the same Subnet and Hence it does not appear to be a networking issue

-The Patch is Applied.
Sanjay_6
Honored Contributor

Re: Telnet and rlogin issue on HP-UX 11.00

Hi,

check the permissions on the file /etc/passwd, /etc/group & /bin/login

/etc/passwd & /etc/group must have read permissions for everyone (PERM - 444) and /bin/login must have -r-sr-xr-x (PERM - 4555). /bin/login can also be -rwsr-xr-x (4755).

Hope this helps.

Regds
Pawan_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

Yes it is and it matches with other systems.
bhoopathi_1
Frequent Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

Can you try logging in through console, just to rule out the possibility of terminal problem !!
Fadia Almarei
Super Advisor

Re: Telnet and rlogin issue on HP-UX 11.00

Hi
i have a suggestion ,check the file /etc/securetty if you have a console word in it this means that you can not login through telnet using the root user so you must creat another ordinary user and login using it and then su to root .
fadia.marei