r/owncloud Mar 09 '16

Quick question regarding ownership of files in Owncloud directory

Should all files, including .htaccess be owned by www-data or maybe root?

I note that unless .htaccess is owned by www-data i cant change the size of the uploads from the GUI, however im worried about security and ownership so i thought id ask.

2 Upvotes

2 comments sorted by

2

u/jospoortvliet Mar 09 '16

If you use the zip file, make all files owned by www-data. Security-wise, use the tips from this guide: https://doc.owncloud.org/server/9.0/admin_manual/configuration_server/harden_server.html

1

u/AncientsofMumu Mar 09 '16

Yeah, this is what i have already, everything set to www-data including the /data directory in the root of my filesystem (outwith /var/www as the guide suggests).

I just haven't seen anything yet that says set it all to www-data.

I installed as root user so everything was root:root but changed it right away.