Operating System - HP-UX
1827435 Members
4987 Online
109965 Solutions
New Discussion

last - only showing root console connections

 
Ratzie
Super Advisor

last - only showing root console connections

My last command is only showing root...
I have cleared out my /var/adm/wtmp file, and if I log in, it does write to this file, but last does not show the user that logs in then out.

# last
root console Mon Jul 6 11:13 still logged in
reboot system boot Mon Jul 6 11:11 still logged in
root console Thu Jul 2 05:49 - 11:06 (4+05:17)
reboot system boot Mon Jun 29 17:57 - 11:11 (6+17:13)
reboot system boot Mon Jun 29 14:11 - 17:57 (03:45)
reboot system boot Fri Jun 26 11:54 - 14:11 (3+02:17)
root console Thu Jun 11 13:13 - 13:16 (00:02)
reboot system boot Thu Jun 11 13:05 - 11:54 (14+22:48)
root console Thu Jun 11 11:18 - 13:01 (01:43)
reboot system boot Thu Jun 11 11:11 - 13:05 (01:53)
root console Thu Jun 11 10:59 - 11:07 (00:07)
reboot system boot Thu Mar 12 16:19 - 11:11 (90+18:52)
root console Tue Jul 1 22:02 - 16:19 (253+18:17)
reboot system boot Tue Jul 1 22:01 - 16:19 (253+18:18)
root console Tue Jul 1 21:46 - 21:57 (00:10)
reboot system boot Tue Jul 1 21:45 - 22:01 (00:16)
root console Fri Jun 27 15:25 - 21:40 (4+06:15)
reboot system boot Fri Jun 27 15:19 - 21:45 (4+06:25)
root console Thu Jun 26 23:24 - 15:15 (15:51)
reboot system boot Thu Jun 26 18:12 - 15:19 (21:07)
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: last - only showing root console connections

Hi:

What HP-UX release is this?

Regards!

...JRF...
Ratzie
Super Advisor

Re: last - only showing root console connections

Sorry...
HP 11.23
Mel Burslan
Honored Contributor

Re: last - only showing root console connections

what is the permissions of your /var/adm/wtmp and its ownership ? mine is as follows:

-rw-rw-r-- 1 adm adm 24464400 Jul 9 13:57 /var/adm/wtmp
________________________________
UNIX because I majored in cryptology...
Ratzie
Super Advisor

Re: last - only showing root console connections

-rw-rw-r-- 1 adm adm 120 Jul 9 15:50 wtmp
James R. Ferguson
Acclaimed Contributor

Re: last - only showing root console connections

Hi (again):

The permissions for '/var/adm/wtmps?' should be 666 (-rw-rw-rw) as Mel was thinking.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: last - only showing root console connections

Hi (again):

I'm sorry, I was wrong. The permissions on my servers are indeed 664 with ownership and group "adm" as noted by Mel. Disregard my last post!

Regards!

...JRF...

Dennis Handly
Acclaimed Contributor

Re: last - only showing root console connections

Is utmpd(1M) running?
Ratzie
Super Advisor

Re: last - only showing root console connections

Yes, I even stopped and restarted it.