- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- wtmp and btmp.
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
тАО03-08-2005 12:24 PM
тАО03-08-2005 12:24 PM
wtmp and btmp.
Our systems are having large wtmp and moderate btmp files.
I would like to copy them to another machine and then give >wtmp and >btmp (null out the files)
What are the implication on doing this. I know this can be done without any problem but still wants to check with you people.
Tx,
Nair
- Tags:
- wtmps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 12:46 PM
тАО03-08-2005 12:46 PM
Re: wtmp and btmp.
Its ok to remove wtmp and btmp. These are for record keeping only. Also you can recreate them.
for wtmp
#touch /var/adm/wtmp
#chmod 664 /var/adm/wtmp
#chown adm:adm /var/adm/wtmp
for btmp
#touch /var/adm/btmp
#chmod 640 /var/adm/wtmp
#chown adm:adm /var/adm/wtmp
Hope that helps.
Regards,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 01:12 PM
тАО03-08-2005 01:12 PM
Re: wtmp and btmp.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 01:39 PM
тАО03-08-2005 01:39 PM
Re: wtmp and btmp.
btmp and wtmp files holds user and accounting information
btmp file contains bad login entries for each invalid logon attempt. File wtmp contains a record of all logins and logouts.
These files tend to grow without bound, and should be checked regularly. Information that is no longer useful should be removed periodically to prevent it from becoming too large.
You can use sam to trim the logs. Sam--Routine Tasks---System Log Files-----select /var/adm/wtmp and /var/admbtmp then from Action menu select trim to zero.
Note:- If these files are removed, record-keeping is turned off. Before triming the logs if you want to make a record of the incorrect / bad logins you can use fwtmp which reads from the wtmp file converting binary records to formatted ASCII records.
Also note that wtmp and btmp are not created by the programs that maintain them. Thus, if these files are removed, record-keeping is turned off.
fwtmp reads from the standard input and writes to the standard output, converting binary records of the type found in wtmp to formatted ASCII records. The ASCII version is useful to enable editing, via ed(1), bad records or general purpose maintenance of the file.
Indira A
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 08:45 PM
тАО03-08-2005 08:45 PM
Re: wtmp and btmp.
00 23 * * 6 /usr/lib/acct/runacct 2>/usr/adm/acct/nite/fd2log
It will move those files content to accountting information in /var/adm/acct directory.
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2005 09:05 PM
тАО03-08-2005 09:05 PM
Re: wtmp and btmp.
as all the above answers but please be aware thta you lose the login info, so things like who etc. may give yu bad results for a while.
I do like A. Clay Stephenson's suggestion.
Regards