- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- last command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 02:44 AM
тАО10-13-2005 02:44 AM
wtmp begins Thu Oct 13 22:32
It doesn't show me all the logon connections. I'm on HPUX 11i. Can someone tell me what's wrong?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 02:47 AM
тАО10-13-2005 02:47 AM
Re: last command
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 02:50 AM
тАО10-13-2005 02:50 AM
Re: last command
Also keep in mind that, sometimes this file gets corrupted and there is no other recovery than zeroing it out.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 11:55 AM
тАО10-13-2005 11:55 AM
Re: last command
The fact that it is saying that wtmp begins on today's (well at least your post date) date means that something has wiped out the history of logins on your host.
wtmp is the file where this information is stored and last is telling you that the file only started today... that's why you don't see anything.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 01:26 PM
тАО10-13-2005 01:26 PM
Re: last command
Its true that I nulled the file yesterday because prior to that I was still getting no output from the command although I've done numerous logins earlier. This morning, the output shows a different date and nothing else. Pretty strange. see below
# ls -l w*
-rw-rw-r-- 1 adm adm 11761 Oct 14 09:02 wtmp
-rw------- 1 root sys 280 Sep 16 16:19 wtmpx
# last
wtmp begins Sat Sep 21 20:47
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 03:57 PM
тАО10-13-2005 03:57 PM
Re: last command
[I have assigned points to 0 of 16 responses to my questions.] Make it 16/16 and you will get more replies.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 07:05 PM
тАО10-13-2005 07:05 PM
Solutiona) permission of /var/adm directory
# ls -ld /var/adm
drwxr-xr-x 12 adm adm 8192 Oct 14 00:39 /var/adm
b) # ls -l wtmp
-rw-rw-rw- 1 adm adm 420 Oct 14 00:49 wtmp
Next level:
# mv /var/adm/wtmp /var/adm/wtmp.old
# touch /var/adm/wtmp
# chmod 664 /var/adm/wtmp
Try with new (few) logins and audit it.
# last -f /var/adm/wtmp
If it is not working then,
# uname -a
# what `which login`
Post this.
hth.
# chown adm:adm /var/adm/wtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 07:38 PM
тАО10-13-2005 07:38 PM
Re: last command
Yes, please try this:
# mv /var/adm/wtmp /var/adm/wtmp.old
# touch /var/adm/wtmp
# chmod 664 /var/adm/wtmp
# chown adm:adm /var/adm/wtmp
Try login and run command "last" again to see how.
BR,
Mei
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-13-2005 07:56 PM
тАО10-13-2005 07:56 PM