- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: trimming wtmp - log file size
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
03-16-2001 12:12 PM
03-16-2001 12:12 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 12:24 PM
03-16-2001 12:24 PM
SolutionRegards,
Jason V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 12:26 PM
03-16-2001 12:26 PM
Re: trimming wtmp - log file size
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xfdebf841489fd4118fef0090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x4cb66af52b04d5118fef0090279cd0f9,00.html
/rcw
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 12:27 PM
03-16-2001 12:27 PM
Re: trimming wtmp - log file size
Good Luck,
Jason V.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 12:32 PM
03-16-2001 12:32 PM
Re: trimming wtmp - log file size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 12:40 PM
03-16-2001 12:40 PM
Re: trimming wtmp - log file size
man acct
This however creates logs of output for Admins to review. It is advisable to remove these instead of wtmp via a cron job.
I gave a pretty detailed description a while ago about how to set up berkely accounting. Search for it for more info. I use acct at all facilities not just to keep wtmp and the other acct files tidy, but to gather information.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 01:15 PM
03-16-2001 01:15 PM
Re: trimming wtmp - log file size
Shannon is right. The accounting facilities are designed to manage /var/adm/wtmp when you are interested in keeping, analyzing, and trimming the data.
If you merely want to "zero" the file after examining it (with 'last') then the proper way is to direct /dev/null into it so that the file descriptor to the file remains the same:
# cat /dev/null > /var/adm/wtmp
If you never care about last logins, you can remove the file entirely. This will stop its creation and any I/O to it. Then, if you want to use it later, touch it (or direct /dev/null to it); set its ownership to "root" and make its permissions 644.
Take a look at the 'last' man pages for more information, too.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2001 01:24 PM
03-16-2001 01:24 PM
Re: trimming wtmp - log file size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2001 05:08 AM
03-18-2001 05:08 AM
Re: trimming wtmp - log file size
Please assign points to those that helped you,
http://europe-support2.external.hp.com/estaff/bin/doc.pl/forward/screen=estaffAssistance/sid=e1247fa4196e98c369?Page=file0002#forpoints
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2001 06:06 AM
03-19-2001 06:06 AM