"restart" wtmp

"restart" wtmp

Post by Cowboy L » Mon, 01 Jul 1996 04:00:00



Hi,
        Does anyone out there, knows how to restart wtmp? As the  file
is getting bigger and bigger . Thanks.

Cheers
C.K LIM
--
//////***************************************************************\\\\\


 ***************** We must learn to forgive not forget. *****************

 
 
 

"restart" wtmp

Post by Mark Viss » Tue, 02 Jul 1996 04:00:00


: Hi,
:       Does anyone out there, knows how to restart wtmp? As the  file
: is getting bigger and bigger . Thanks.
:
: Cheers
: C.K LIM
: --
: //////***************************************************************\\\\\


:  ***************** We must learn to forgive not forget. *****************

Just remove the file and touch it.

in casu

rm /var/log/wtmp
touch /var/log/wtmp

without touching the logging to the file will not continue.

Mark

--
-------------------------------------------------------------------------
Mark Visser                |   Student Civiele Technologie & Management


Telephone: 053-4895038     |
-------------------------------------------------------------------------
Warning: You can get rid of all the bugs by disabling them from the main menu.

 
 
 

"restart" wtmp

Post by Ronny Spieg » Tue, 02 Jul 1996 04:00:00


:       Does anyone out there, knows how to restart wtmp? As the  file
: is getting bigger and bigger . Thanks.

You can delete this file and then restart your system. I had no problems with
this way.

Cu

--
--------------------------------------------------------------------------


-------------- PGP Public-Key wird auf Anfrage verschickt ----------------

 
 
 

"restart" wtmp

Post by Robert Hell » Wed, 03 Jul 1996 04:00:00



  In a message on Mon, 1 Jul 1996 05:43:04 GMT, wrote :


RS> :        Does anyone out there, knows how to restart wtmp? As the  file
RS> : is getting bigger and bigger . Thanks.
RS>
RS> You can delete this file and then restart your system. I had no problems with
RS> this way.

All you need to do is:

# cd /var/log
# cp /dev/null wtmp

(You might also want to do:

# cp /dev/null messages
# cp /dev/null syslog
# cp /dev/null lastlog
# cp /dev/null xferlog

(all in /var/log (aka /var/adm)).

There is no need to restart the system.  Just copy /dev/null onto the log files.
This zeros the length.  The files will start growing soon enough.  You *might*
want to copy the files to some other place for looking at later, before you zero
them out.

--
                                     \/

http://vis-www.cs.umass.edu/~heller  ||FidoNet:    1:321/153
http://netmar.com/mall/shops/heller  /\

 
 
 

"restart" wtmp

Post by Dan Ker » Wed, 03 Jul 1996 04:00:00



> Hi,
>         Does anyone out there, knows how to restart wtmp? As the  file
> is getting bigger and bigger . Thanks.

Another option is to "trim" the file regularly when it gets too large.  
For example, place in your system or root crontab:

0 02 * * * root find /var/log/wtmp -size +32k -exec cp /dev/null {} \;

--
Dan Kern
SysAdmin
Cabrillo College Library

**********
UNIX *is* user friendly...
It's just selective about who its friends are.

 
 
 

"restart" wtmp

Post by fre.. » Wed, 03 Jul 1996 04:00:00



> Hi,
>    Does anyone out there, knows how to restart wtmp? As the  file
> is getting bigger and bigger . Thanks.

rm wtmp
touch wtmp
--
-------------------------------------------------------------------------------

( /__  ,__.   __   __ /  __   : /                                 508-663-2524

/    /  (__ (___ (__(_ (___ / :__                                 617-438-5471
-------------------------------- Jude 1:24,25 ---------------------------------
 
 
 

"restart" wtmp

Post by Cliff Pra » Thu, 04 Jul 1996 04:00:00




>    Does anyone out there, knows how to restart wtmp? As the  file
>is getting bigger and bigger . Thanks.

Yup. Use the command "> wtmp" just before booting.