The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Help Needed using utmp file! maverixxx UNIX for Dummies Questions & Answers 2 3 Weeks Ago 03:55 PM
How come nothing is added to utmp in this case? frequency8 High Level Programming 1 07-01-2007 02:21 PM
utmp ACCOUNTING thmnetwork High Level Programming 2 06-17-2005 08:16 AM
: /var/adm/utmp exists! dangral SUN Solaris 2 02-27-2004 08:17 AM
SCO utmp file scott_williams1 SCO 1 10-30-2003 07:45 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-20-2006
Registered User
 

Join Date: Aug 2005
Posts: 20
utmp files

Hi All,
if someone know where I can set dimension of utmp log files like
wtmp
failedlogin
sulog in an AIX system.
These are called security logs and they can reach a max amount in day or MB, where can I steady their size ?

thanks in advance.
Reply With Quote
Forum Sponsor
  #2  
Old 12-21-2006
Registered User
 

Join Date: Aug 2005
Posts: 20
no idea ?
tx
Reply With Quote
  #3  
Old 12-21-2006
Registered User
 

Join Date: Nov 2006
Location: Austria/Vienna
Posts: 235
you can limit the size of these files to a fixed number of lines with a shell script if thats an option for you

LINECOUNT=whatever you want

tail -"$LINECOUNT" /var/adm/wtmp > /tmp/wtmp.tmp
/tmp/wtmp.tmp > /var/adm/wtmp
rm /tmp/wtmp.tmp

(test before use, haven't done so yet, but should work ^^)

put this in a file and run in crontab every hour or whenever
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0