Log rotation/gzip creates files as root, how to fix?

Discussion in 'Install/Configuration' started by inspirix, Nov 9, 2006.

  1. inspirix

    inspirix New Member

    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
  2. mistwang

    mistwang LiteSpeed Staff

    this feature request is just in time for 2.2.5 release. :)
  3. inspirix

    inspirix New Member

    Awesome!

    Thanks so much,

    Joe
  4. xing

    xing LiteSpeed Staff

    Joe. 2.2.5 has been released.

Share This Page