mrdavidlaing/pressup — Issue #8: hown: changing ownership of ...'uploads/2012/01' ': Operation not permitted
Author: mrdavidlaing
Created: 2012-01-02 14:27:15+00:00
State: open

Files uploaded by the webserver are owned by www-data:www-data

This causes the build to fail when the user running the build is not www-data, since the a user who is not the owner of the file, or root cannot change the ownership / permissions of a file they don't own.

chown -R wordpress:www-data /data/www/WebAngle-WordPress/httpdocs/wpsingletemplate.local/v1/wp-content/uploads/
chown: changing ownership of `/data/www/WebAngle-WordPress/httpdocs/wpsingletemplate.local/v1/wp-content/uploads/2012/01': Operation not permitted