- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to know utmp/utmpx file are corrupted..
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
11-13-2005 10:49 PM
11-13-2005 10:49 PM
how to know utmp/utmpx file are corrupted..
Logname command is not working, i would like to know my utmp/utmpx files are corrupted or not. can any one give some suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 10:57 PM
11-13-2005 10:57 PM
Re: how to know utmp/utmpx file are corrupted..
Does last and lastb command also do not work? If yes then this should be the only case.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 11:02 PM
11-13-2005 11:02 PM
Re: how to know utmp/utmpx file are corrupted..
Are you able to run "last" command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 11:05 PM
11-13-2005 11:05 PM
Re: how to know utmp/utmpx file are corrupted..
# cat /etc/utmp | /usr/sbin/acct/fwtmp
You can not edit these files, but with above command you can read the /etc/utmp file.
etc/utmp contains a record of all users currently logged onto the system. It is recommended not to trim the utmp file. Note: When using SAM to trim log files, /etc/utmp will not be a choice.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2005 11:13 PM
11-13-2005 11:13 PM
Re: how to know utmp/utmpx file are corrupted..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2005 12:42 AM
11-14-2005 12:42 AM
Re: how to know utmp/utmpx file are corrupted..
IF you are asking about '/etc/utmp' then, see if 'who' returns your expected results.
Both 'logname' and 'who' read '/etc/utmp'. Make sure that the permissions on '/usr/bin/logname' are such that it is executable by everyone.
Regards!
...JRF...