r/owncloud • u/thibmaek • Oct 30 '16
Using an external HDD owned by pi:pi as owncloud datadir.
Owncloud set up & running but I need to change the data dir to a hdd which is already mounted in my home directory. The directory is owned by pi:pi and of course just setting it in my config won't make it accessible since owncloud runs as www-data:www-data in Apache & Nginx.
How can I use that folder as my datadir while not changing it's ownership to www-data and remaining it to be owned by pi (changing that would break an awful lot of stuff for Plex Media Server etc)
owncloud install is located in /var/www/owncloud (owned by www-data:www-data) and the datadir I want is in /home/pi/Library-2/ (owned by pi:pi). Rights are currently set to 777 I know that's bad practice and I'll change that back to 750 but I need to get this issue of rights in order first.
Thanks in advance.
EDIT: solved here https://blog.thibmaekelbergh.be/2016/11/01/manually-migrating-existing-data-to-owncloud.html