ownership error while running an ubuntu mirror site?

Mauricio Tavares raubvogel at gmail.com
Sun Aug 8 15:19:54 BST 2010


On 08/08/2010 02:00 AM, Ubuntu Mirror Maintainer of Bangladesh wrote:
>> pool/main/g/glew/
>> pool/main/g/glib1.2/
>> pool/main/g/glib2.0/rsync: send_files failed to open
>> "/pool/main/g/glib2.0/libglib2.0-0_2.25.12-1ubuntu1_i386.deb" (in
>> ubuntu): Permission denied (13)
>> pool/main/g/glibc-doc-reference/
>> pool/main/g/glibc/
>> pool/main/g/glibmm2.4/
>
>> Why wouldn't it be able to write to that directory? As mentioned
>> before, that entire directory path is owned by www-data:www-data. Am I
>> missing something here?
>
> Run your script as user ' www-data' . Your problem might solved.
>
> Thanks
> Ahamed Bauani


     I thought that was what I am doing; here is how the cron script 
looks like:

root at mirror:/var/log/ubumirror# cat /etc/cron.d/ubumirror-sync
# /etc/cron.d/ubumirror-sync: crontab entry for the ubuntu package sync

SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# https://wiki.ubuntu.com/Mirrors
# Update archive mirror every six hours.
03 */6 * * * www-data /usr/bin/ubuarchive >/dev/null
# Update releases mirror every four hours.
03 */4 * * * www-data /usr/bin/uburelease >/dev/null
# Update cdimage mirror every twenty-four hours.
# 03 11 * * * ubumirror /usr/bin/ubucdimage >/dev/null
root at mirror:/var/log/ubumirror#


Also,

root at mirror:# ls -ld /export/mirror/ubuntu/pool/main/g/glib2.0
drwxrwsr-x 2 www-data www-data 20480 2010-08-07 16:12 
/export/mirror/ubuntu/pool/main/g/glib2.0
root at mirror:#



More information about the ubuntu-mirrors mailing list