Operating System - HP-UX
1820080 Members
3028 Online
109608 Solutions
New Discussion юеВ

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

 
SOLVED
Go to solution
MRSG
Frequent Advisor

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

Hi,

I attempted to rlogin in to a server, but was denied with the following error, any advice on what causes it and a resolution?

No utmp entry.You must exec "login" from the lowest level "sh".
Connection closed.
10 REPLIES 10
U.SivaKumar_2
Honored Contributor

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

Hi,
DO this in the remote server to resolve the issue.
# > /etc/utmp

regards,
U.SivaKumar


Innovations are made when conventions are broken
MRSG
Frequent Advisor

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

thanks - though ut didn't work. It's not as if the logfile is huge or anything. Any other ideas? Cheers.
Alex Glennie
Honored Contributor

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

1. cp /etc/utmp /etc/utmp.orig
2. rm /etc/utmp
3. touch /etc/utmp
4. Use chown and/or chmod to make changes to persmissions or owners as needed.
5. init q
If that doesn't work, then:
1. cp /etc/inittab /etc/inittab.orig
2. cp /usr/newconfig/etc/inittab /etc/inittab
3. init q

If that doesn't work, then shutdown and reboot the system

Ravi_8
Honored Contributor

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

Hi,

I used to reboot the m/c when i was facing this problem and this diesn't used to occur after the m/c comes up
never give up
BFA6
Respected Contributor

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

Hi,

I've had to reboot a machine in the past to get round this problems.

Hilary
U.SivaKumar_2
Honored Contributor

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

Hi,
I think you have spawned some subshells in the
local machine.
#ps
will show running shells

Logout and login again. Now try rlogin to remote server

regards,
U.SivaKumar
Innovations are made when conventions are broken
MRSG
Frequent Advisor

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

For info.

Clearing the /etc/utmpx file seemed to do the trick

MANOJ SRIVASTAVA
Honored Contributor

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

This is because the /etc/utmp is corrupt , so you have to recreate it , all you got to do is to mv /etc/utmp to /etc/old and then login again , this will recreate the correct one.




Manoj Srivastava
Shannon Petry
Honored Contributor

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

Also, have you installed any spaceware software by chance? Their installer for a long time created an entry in /etc/inittab which was bugged.
If this is the case let me know and I'll give you the correction to the entry.

Regards,
Shannon
Microsoft. When do you want a virus today?
Varughese Thomas
New Member
Solution

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

i have ran into this problem as well. I had to remove and touch /etc/utmp and /etc/utmpx file to resolve this issue.

if u can rlogin to the server
remsh remoteserver mv /etc/utmp /etc/utmp.old
remsh remoteserver mv /etc/utmpx /etc/utmpx.old
remsh remoteserver touch /etc/utmp
remsh remoteserver touch /etc/utmpx
init q

remsh is not avaialbe then boot to single user and perform these steps.
vt