[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Owner of logfiles
- Subject: Re: [cobalt-users] Owner of logfiles
- From: "Jens-Peter Otto" <jp.otto@xxxxxxxxxxxxxxx>
- Date: Wed Jan 15 06:24:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> All I could find in the archives was the question, an not the answer :(
>
> I'm looking for a way to automatically change the owner of a sites logfile
> and the webalizer data so that the space these things eat up don't account
> for the clients quota.
let cron do a chown or chgrp ...
chgrp root /home/sites/site*/logs/*
should do it.
You might want to put something similar into
/usr/local/sbin/split_logs
to prevent error messages during the time after the logfiles are created and before you reset the owner.
Jens-Peter