- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Core Dump - 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
Forums
Discussions
Discussions
Discussions
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
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
09-18-2002 09:40 PM
09-18-2002 09:40 PM
Core Dump - last command
On HP-UX 11, last command is giving core dump. wtmp file exists under /var/adm directory. There is no problem regarding access permission of wtmp file and last was executed as root. I can also issue file command to check the type of wtmp file. It shows - data.
Any idea what could go wrong?
I can issue lastb command to get the login history from btmp file.
Thanks in advance.
Soumen Ghosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2002 09:48 PM
09-18-2002 09:48 PM
Re: Core Dump - last command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2002 09:49 PM
09-18-2002 09:49 PM
Re: Core Dump - last command
cat /dev/null > /var/adm/wtmp
Before you do this copy the original file to wtmp.old
You can extract the contents by
#/usr/sbin/acct/fwtmp < /var/adm/wtmp > /tmp/wtmpfile
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2002 09:53 PM
09-18-2002 09:53 PM
Re: Core Dump - last command
The file /var/adm/btmp contains bad login entries for each invalid logon
attempt and the file /var/adm/wtmp contains a record of all logins and
logouts. See the man page utmp(4) for more information.
They are binary data files, so they cannot be read directly. The can however
be read with the following commands:
# /usr/sbin/acct/fwtmp < /var/adm/wtmp
# /usr/sbin/acct/fwtmp < /var/adm/btmp
The "last" and "lastb" commands display the information is a readable format.
The files can be zeroed or removed but if they are removed they need to be
manually recreated as they not created by the programs that maintain them.
Thus, if these files are removed, record-keeping is turned off.
If you want to recreate them note the ownerships and permissions before
removing them and reset the ownerships and permissions after recreating the
files (usually with touch to create an empty files). This is EXTREMELY
important -> especially for the btmp file.
In your case i think wtmp file is corrupted .pls recreate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2002 10:21 PM
09-18-2002 10:21 PM
Re: Core Dump - last command
/var/adm/wtmp file may be corrupted,
#cd /var/adm
#cp wtmp wtmp.old
# rm wtmp
#touch wtmp
#mv wtmp.old wtmp
#chmod 0644 wtmp
#last
should work now.