Take a look at the logrotate manpage You can set a prerotate section and a postrotate section in logrotate.conf as well as in the the individual scripts in /etc/logrotate.d (syslog is what you are interested in under this directory) Also if you set messages.1 +i logrotate wont be able to move it to messages.2 on the next cycle, so you'd probably have to chattr -i messages.* in prerotate and then +i the whole lot in postrotate again. Hope this helps, Tobias -----Original Message----- From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Nathaniel Hall Sent: Thursday, June 10, 2004 12:34 PM To: 'General Red Hat Linux discussion list' Subject: Logrotate scripts Sorry to keep asking questions, but I need some more input. I am running a syslog server (finally). I want logrotate to rotate the logs when I specify (weekly right now), but here is where the problem is. I want to have the logs set with the Append Only bit set. When logrotate rotates the logs, I want it to remove the Append Only bit, move it to the new file (messages.1, for example) and set the Immutable bit to keep it from being changed or added to. When that is finished, I want it to create a new blank file with the Append Only bit set. Where can I do this? I am new to Linux so I started my own project so that I can learn. Thanks a lot. ~~~~~~~~~~~~~~~~~~~~~~~~~~ Nathaniel Hall Intrusion Detection and Firewall Technician Ozarks Technical Community College -- Office of Computer Networking 417-799-0552 -- 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