Operating System - HP-UX
1833161 Members
3161 Online
110051 Solutions
New Discussion

Re: Couldn't write to /etc/utmp at shutdown

 
Brad Marks
Super Advisor

Couldn't write to /etc/utmp at shutdown

I rebooted my rp5470 yesterday and got the following messaage when shutting down:
Couldn't write to /etc/utmp Entry: /dev/pts/tYe

The permissions for /etc/utmp are -rw-r--r--; is that right?! If so, any other ideas on why this occurs?

I've also recently noticed that, during reboot, when processes are starting up, the startup message has about 2.5 times the number of periods (.) than are required; instead of getting OK or N/A on the right column of the console, the line wraps twice and the OK is in the middle of the screen. I know that this is cosmetic, but
a) could it indicate that something is wrong?
b) it gives the console's scroll back buffer 1/3 the effectiveness as before.


TIA
Brad
It's not impossible -- it'll just cost more...
4 REPLIES 4
Kent Ostby
Honored Contributor

Re: Couldn't write to /etc/utmp at shutdown

Most likely it's due to the corruption of /etc/utmp. If you can't get accessed to the box with root capabilities, you'll have to empty "utmp" file ( >/etc/utmp ) in single user mode
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Brad Marks
Super Advisor

Re: Couldn't write to /etc/utmp at shutdown

Since we are quite dependent upon 'who' info, prior to next reboot I'll delete and re-create /etc/utmp.

Any thoughts on the second part of my post?
It's not impossible -- it'll just cost more...
R. Sri Ram Kishore_1
Respected Contributor

Re: Couldn't write to /etc/utmp at shutdown

Hi Brad,

Take a look at this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=485289

HTH.
Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
Brad Marks
Super Advisor

Re: Couldn't write to /etc/utmp at shutdown

cat /dev/null > /etc/utmp did the trick.

Thanks to all
It's not impossible -- it'll just cost more...