wwwoffle + ht://dig : cronjob doesn't have permissions to write its log

Bug #689500 reported by Maxime Ritter
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wwwoffle (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: wwwoffle

On Ubuntu 10.10 : I tried to install both wwwoffle and ht://dig. Nearly perfect integration of both packages... except... the cronjob never worked. Why ? Let's try to run it manually.

root@rakia:/etc/cron.daily# su proxy -s /bin/sh -c /usr/share/wwwoffle/search/htdig/wwwoffle-htdig-incr
/usr/share/wwwoffle/search/htdig/wwwoffle-htdig-incr: 19: cannot create /var/log/wwwoffle-htdig.log: Permission denied

It can write its log, it doesn't have permission to write/create the file. Ok, let's fix it :

root@rakia:/etc/cron.daily# touch /var/log/wwwoffle-htdig.log
root@rakia:/etc/cron.daily# chown proxy /var/log/wwwoffle-htdig.log

root@rakia:/etc/cron.daily# su proxy -s /bin/sh -c /usr/share/wwwoffle/search/htdig/wwwoffle-htdig-incr

Oh, it's perfectly running now. The ubuntu package script should also create an empty log file with the correct permission.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.