Either running the cron job as root or allowing www-data to read the apache log files are bad ideas. Instead you want to create a new user and add it to the www-data and adm groups and make the cron job execute as that user. I called mine "awstats":
useradd awstats && usermod -a -G www-data awstats && usermod -a -G adm awstats Seems to work like a charm. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1252467 Title: /etc/cron.d/awstats: wrong user for cron job To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/awstats/+bug/1252467/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs