cancel
Showing results for 
Search instead for 
Did you mean: 

telnet and rlogin error

Leon Stevens
Occasional Advisor

telnet and rlogin error

I have a B1000 work station running 10.20 with the following error when attempting to login with telnet or rlogin,

No utmp entry. You must exec "login" from the lowest level "sh".

Tanks In Advance for any help

Leon
7 REPLIES
Leon Stevens
Occasional Advisor

Re: telnet and rlogin error

sorry, worng catagory
Alex Glennie
Honored Contributor

Re: telnet and rlogin error

PROBLEM

When I try to login via telnet:

login: root
Password:
No utmp entry.You must exec "login" from the lowest level "sh".

CONFIGURATION

10.20, S700, telnet login

RESOLUTION

This may be caused by a /etc/utmp file that contains corrupted entries. One approach is to fix
the corrupted entries only (and keep the good part) using /usr/sbin/acct/fwtmp , another
approach is just to clean utmp (and lose all entries).

For the latter one just login as root and recreate the file:

> /etc/utmp
Vincente Fernandes
Valued Contributor

Re: telnet and rlogin error

First of all is our workstation accessible on the network? If yes then try to ftp to the workstation with uid "root" go to "/etc" dir and upload a 0(zero) byte "utmp" file from the PC where you have ftped. Make sure that the file size is zero, log out of ftp and you should be able to login successfully.
Otherwise the simple solution is to powercycle the worksation. 3r option see if you can TOC(transfer of control - not sure whether it can be done on a workstation) workstation.
Thomas Schler_1
Trusted Contributor

Re: telnet and rlogin error

This is an error I usually have when I try to perform the login command after having switched the uid with the su command. But not when I try to make a rlogin or telnet.

Besides the other solution proposals be sure to have the newest patch bundle installed on the system.
no users -- no problems
Thomas Schler_1
Trusted Contributor

Re: telnet and rlogin error

This is an error I usually have when I try to perform the login command after having switched the uid with the su command. But not when I try to make a rlogin or telnet.

Besides the other solution proposals be sure to have the newest patch bundle installed on the system.
no users -- no problems
R.Suresh
Frequent Advisor

Re: telnet and rlogin error

Hi,

Do you have any other softwares,or the
spcial device driver softwares,
which made entry in /etc/inittab file?

Remarkout the new entry from the inittab
file,restart the system & check.

If you found the problem solved,get the
latest patch from those software vendor &
install.
PDLS
Mario J. Ferreira
Occasional Visitor

Re: telnet and rlogin error

In the similar situation, with the same error message after login and with the ftp error: "530 User xxxx access denied"... I solve the problem changing the path of the binary file shell at the /etc/passwd.

Check if the last field on /etc/passwd has a correct path to the shell...

ex.: /usr/bin/csh or /bin/csh

Its happened because a migration of hp-ux 10.20 to 11i.

Mario