[Bug 1252467] Re: /etc/cron.d/awstats: wrong user for cron job

Mike Robinson 1252467 at bugs.launchpad.net
Thu Nov 20 03:44:21 UTC 2014


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



More information about the Ubuntu-server-bugs mailing list