1834915 Members
2561 Online
110071 Solutions
New Discussion

Re: no utmp entry

 
CSP_ALGERIA
Frequent Advisor

no utmp entry

hello
I have a problem with a RP8400 with a HPUX 11.i .When I log to our server an error occur :
No utmp entry . You must exec "login" from the lowest level "sh".
thanks .
A+
Nothing in the world can take the place of persistence.
4 REPLIES 4
Franky_1
Respected Contributor

Re: no utmp entry

Hi,

seems you have a corrupt utmp file

you should recreate it

>> /etc/utmp
>> /etc/utmpx

if that doesn't work then try the same using touch

touch /etc/utmp
touch /etc/utmpx

Regards

Franky
Don't worry be happy
bhavin asokan
Honored Contributor

Re: no utmp entry

hi,
it seems that your /etc/utmp file could be corrupted.
if alrady a login is there at the root prompt give the following command.

If none can login do this, reboot the system in to single user mode and give this command in the root prompt

>/etc/utmp

reboot multiuser mode your problem is solved.

Be careful of the permissions, they should be 644 root root .


regds,
Muthukumar_5
Honored Contributor

Re: no utmp entry

Are you having utmp files as,

/etc/utmp and /etc/utmpx there.

Else create it as,

touch , > or >> , cp /dev/null /etc/utmp there.

Change the permission to root root 755 there.

Login audit files may be corrupted on 11.i randomly there. It may be the cause for this.

HTH.
Easy to suggest when don't know about the problem!
Cheryl Griffin
Honored Contributor

Re: no utmp entry

It is not always an indication that utmp is corrupt. Check what processes are running:
# ps -ef |grep user or grep the tty

Do you see two sh entries?
If so, exit then run your command.
# exit
"Downtime is a Crime."