From 922eb7cbfb9a734b573aabbd00695ba922dbc390 Mon Sep 17 00:00:00 2001 From: RealRancor Date: Mon, 12 Oct 2015 09:05:49 +0200 Subject: [PATCH] Set corret group in permission script --- admin_manual/installation/installation_wizard.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/admin_manual/installation/installation_wizard.rst b/admin_manual/installation/installation_wizard.rst index 3b92766a6..e748faebf 100644 --- a/admin_manual/installation/installation_wizard.rst +++ b/admin_manual/installation/installation_wizard.rst @@ -144,18 +144,19 @@ replace the ``htuser`` and ``htgroup`` variables with your HTTP user and group:: ocpath='/var/www/owncloud' htuser='www-data' htgroup='www-data' + rootuser='root' # On QNAP this is admin find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640 find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750 - chown -R root:${htuser} ${ocpath}/ + chown -R ${rootuser}:${htgroup} ${ocpath}/ chown -R ${htuser}:${htgroup} ${ocpath}/apps/ chown -R ${htuser}:${htgroup} ${ocpath}/config/ chown -R ${htuser}:${htgroup} ${ocpath}/data/ chown -R ${htuser}:${htgroup} ${ocpath}/themes/ - chown root:${htuser} ${ocpath}/.htaccess - chown root:${htuser} ${ocpath}/data/.htaccess + chown ${rootuser}:${htgroup} ${ocpath}/.htaccess + chown ${rootuser}:${htgroup} ${ocpath}/data/.htaccess chmod 0644 ${ocpath}/.htaccess chmod 0644 ${ocpath}/data/.htaccess