I have ftp access set up to the log directory so clients can pull their access logs. Using the nice log rotation and gzip seems to be the perfect fit, but its creating the gzip's as root. This results in the files being Permission denied when attempting to download them. Is that any way I can make it so the rotated and gzipped logs are created with the same permissions as access.log?
-rw-r--r-- 1 nobody nobody 4091614 Nov 8 20:38 access.log
-rw------- 1 root nobody 487290 Nov 8 11:39 access.log.2006_11_08.gz
Would like it to be:
-rw-r--r-- 1 nobody nobody 4091614 Nov 8 20:38 access.log
-rw-r--r-- 1 nobody nobody 487290 Nov 8 11:39 access.log.2006_11_08.gz
-rw-r--r-- 1 nobody nobody 4091614 Nov 8 20:38 access.log
-rw------- 1 root nobody 487290 Nov 8 11:39 access.log.2006_11_08.gz
Would like it to be:
-rw-r--r-- 1 nobody nobody 4091614 Nov 8 20:38 access.log
-rw-r--r-- 1 nobody nobody 487290 Nov 8 11:39 access.log.2006_11_08.gz