Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440700 - www-apps/owncloud-4.5.1 doesn't set the right ownership permissions
Summary: www-apps/owncloud-4.5.1 doesn't set the right ownership permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexey Shvetsov
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-11-01 07:41 UTC by Vincent Brillault
Modified: 2012-11-15 09:01 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Use 'webapp_serverowned -R' instead of 'webapp_serverowned' in the ebuild (owncloud-recursive-ownership.diff,468 bytes, patch)
2012-11-01 07:41 UTC, Vincent Brillault
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Brillault 2012-11-01 07:41:19 UTC
Created attachment 327910 [details, diff]
Use 'webapp_serverowned -R' instead of 'webapp_serverowned' in the ebuild

In the owncloud installation documentation, we can read: 
'''
The owner of your webserver must own the apps/, data/ and config/ directories in your ownCloud install. You can do this by running the following command for the apps, data and config directories:chown -R www-data:www-data /path/to/your/owncloud/install/data
'''

Please note that they are using a '-R' here. The ebuild is specifying only server-ownership of the directory, not recursively (which causes files to be linked, not copied). I attached a simple patch for correcting this.
Comment 1 Bernard Cafarelli gentoo-dev 2012-11-15 09:01:39 UTC
Indeed. This worked in current versions as data/ and config/ (except the sample conf) are empty and for apps/ as long as the apps are not updated/modified.

I killed two birds with one stone and added the recursive flags while bumping the new versions. This is now fixed in 4.0.9 and 4.5.2, thanks for the report!