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
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
тАО11-01-2001 06:57 AM
тАО11-01-2001 06:57 AM
wtmp
i am trying to get some login info from the last command but it keeps core dumping. i tried
strings, who and more, but i dont get the info that last gives me. is there any way to rectify a bad wtmp file?
thx in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2001 07:01 AM
тАО11-01-2001 07:01 AM
Re: wtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2001 07:04 AM
тАО11-01-2001 07:04 AM
Re: wtmp
The fwtmp command will dump out wtmp data in ascii format. Does this product corrupt data too?
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2001 07:07 AM
тАО11-01-2001 07:07 AM
Re: wtmp
# cp /var/adm/btmp /var/adm/btmp.old
# cp /var/adm/wtmp /var/adm/wtmp.old
# > /var/adm/btmp
# > /var/adm/wtmp
# last
==> see if it still gives error. if it does it means those files are corrupted. continue ..
# cp /var/adm/btmp.old /var/adm/btmp
# last
==> if it runs ok it means wtmp is corrupted. if it fails it means btmp is corrupted.
Repeat the last 2 steps above for wtmp file.
After the above test clear the file that has problem... (eg: if wtmp is bad) ..
# > /var/adm/wtmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2001 07:14 AM
тАО11-01-2001 07:14 AM
Re: wtmp
If you want to start fresh, null the file:
# cat /dev/null > /var/adm/wtmp
If, on the otherhand, you want to try to correct or eliminate bad data and keep some portion of the file, do this:
# /usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/wtmp
At this point, you may edit the /tmp/wtmp file, since it is a ASCII file.
# /usr/sbin/acct/fwtmp -ic < /tmp/wtmp > /var/adm/wtmp
Regards!
...JRF...