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 Server Team, which is subscribed to awstats in 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-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs