![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
no idea ?
tx |
|
#3
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|