- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Last Logins /var/adm/wtmp getting wiped out
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
02-05-2008 01:07 PM
02-05-2008 01:07 PM
Last Logins /var/adm/wtmp getting wiped out
I'm trying to use a perl script to look at accounts that haven't logged in the system in ages. The problem is the last logins are being cleared out. I assume it's the /var/adm/wtmp file. The problem is I need it to retain that information. What is it that's clearing that out? That or I need a sure-fire way of determining the last login time. The issue is I"m trying to do it on different platforms and the finger command works great unless you have a problem like this that the information is destroyed.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2008 01:25 PM
02-05-2008 01:25 PM
Re: Last Logins /var/adm/wtmp getting wiped out
/usr/lbin/getprpw -m slogint username
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2008 01:28 PM
02-05-2008 01:28 PM
Re: Last Logins /var/adm/wtmp getting wiped out
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2009 04:27 AM
06-12-2009 04:27 AM
Re: Last Logins /var/adm/wtmp getting wiped out
or
can i do this to the file?
cat blank.txt > /var/adm/wtmp
I am actually looking for files under /var to be zipped since may /var is already at 100%.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2009 05:09 AM
06-12-2009 05:09 AM
Re: Last Logins /var/adm/wtmp getting wiped out
> sysad_boy: You should open your own thread so that replies can be properly assessed by _you_.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2009 05:11 AM
06-12-2009 05:11 AM
Re: Last Logins /var/adm/wtmp getting wiped out
The first place to look at is your rc scripts.
(quick and dirty way)
for file in `find /sbin/rc*d`
do
grep -e wtmp -e btmp ${file}
done
this might tell you, in which rc script your wtmp and btmp is getting cleared.
Also it is a good idea to check root's crontab to see if a job in cron is periodically clearing them out
Hope this helps
UNIX because I majored in cryptology...