SUMMARY: Trimming wtmp & utmp files

From: Michael A. Allen (michael.allen@jhuapl.edu)
Date: Fri May 22 1998 - 10:11:09 CDT


Eric's reply preserves the old file. Thanks to all who replied. I'll attempt to post any creative responses. -MAA-

-----Original Message-----
From: Eric D. Pancer [SMTP:eric@unique.outlook.net]
Sent: Friday, May 22, 1998 11:06 AM
To: Michael A. Allen
Subject: Re: Trimming wtmp & utmp files

Possibly the following.

# cd /var/adm
# cp -p utmp utmp.old
# cat /dev/null > utmp

This will truncate the file to 0. However, you may need to give the daemon
a clue that you did this by doing a kill -1 pid

Make sure that you have space on the device for 2 copies of the file. I
would make a copy just in case you need to go back to it immediately.

Eric

michael

try cat /dev/null >! wtmp

don't delete the files.

hope this helps.

cathy

On Fri, 22 May 1998, Michael A. Allen wrote:

> Admins:
>
> What's the best way to trim files utmp, utmpx, wtmp, & wtmpx. I'll summarize.
>
> Thanks in advance for your response.
> -MAA-
>

Eric D. Pancer
 Outlook Technologies, Inc.
  eric@unique.outlook.net
   http://www.outlook.net/~eric



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:40 CDT