RE: wtmp won't rotate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Check your /etc/logrotate.conf file.  This is what mine says (rhel4) and
it works fine for me:

/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}


I have a wtmp and wtmp.1 file in /var/log.  If you want more back
copies, just change the "rotate 1" to however many back versions you
want.

Maarten Broekman

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Paula J. Lindsay
Sent: Wednesday, February 06, 2008 4:38 PM
To: General Red Hat Linux discussion list
Subject: wtmp won't rotate

Many thanks for the tips on shutting off the xscreensaver.  I could not 
remove it because there were too many
dependencies.  I ended up reading the man page and found how to turn it 
off.  Should of done that in the first
place.  I did read the man page for wtmp.  I've put it in logrotate.conf

to rotate wtmp, but it won't do it.  They
are running RHE 4 and need to have wtmp make a copy of wtmp and start 
over with a new month.  This
linux box is attached to an instrument, it is used by the students and 
faculty and they need it each month so
they can bill these people.  Does anyone know how to make wtmp go to 
wtmp.1 wtmp.2.  It presently just
deletes wtmp and starts a new month.
Many thanks for all of your help.  I couldn't live without this mailing 
list, at least not as an IT person.
Paula

-- 
Paula J. Lindsay
IT Analyst III
Research Computing
10550 North Torrey Pines Road
La Jolla, CA  92037
858.784.9378 (office)
858.784.9301 (fax)
paula@xxxxxxxxxxx

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux