From a4f2445ac6ee44c4fc120e1cf1278613af80bde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20H=C3=A4ussler?= Date: Sun, 21 Jan 2018 14:57:02 +0100 Subject: [PATCH] Change user group and access rights (#126) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Change user group and access rights * Delete chmod 777 commands Fixes #123 Signed-off-by: Christian Häussler (github: @cniweb) --- scripts/installer.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index 223ec40..a30f98e 100644 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -270,11 +270,11 @@ postinst () elif [ "${pkgwizard_public_shome}" == "true" ]; then synoshare --setuser smarthome RO + ${DAEMON_USER} fi - chown -hR ${DAEMON_USER} ${OH_CONF} - chown -hR ${DAEMON_USER} ${OH_ADDONS} - chown -hR ${DAEMON_USER} ${OH_USERDATA} + chown -hR ${DAEMON_USER}:users ${OH_CONF} + chown -hR ${DAEMON_USER}:users ${OH_ADDONS} + chown -hR ${DAEMON_USER}:users ${OH_USERDATA} fi - chown -hR ${DAEMON_USER} ${SYNOPKG_PKGDEST} + chown -hR ${DAEMON_USER}:users ${SYNOPKG_PKGDEST} #if Z-Wave dir exists -> change rights for binding if [ -d /dev/ttyACM0 ]; then