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

Re: [cobalt-users] Owner of logfiles



> 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