Skip to content

Commit 1bfe842

Browse files
authored
fix permissions (#1079)
Signed-off-by: enoch85 <[email protected]>
1 parent fa5115d commit 1bfe842

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

static/setup_secure_permissions_nextcloud.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@ fi
4545

4646
print_text_in_color "$ICyan" "chmod Files and Directories"
4747
find "${NCPATH}"/ -type f -print0 | xargs -0 chmod 0640
48-
find "${VMLOGS}"/nextcloud.log -type f -print0 | xargs -0 chmod 0640
4948
find "${VMLOGS}"/audit.log -type f -print0 | xargs -0 chmod 0640
5049
find "${NCPATH}"/ -type d -print0 | xargs -0 chmod 0750
50+
find "${VMLOGS}"/ -type d -print0 | xargs -0 chmod 0750
51+
find "${VMLOGS}"/nextcloud.log -type f -print0 | xargs -0 chmod 0640
5152

5253
print_text_in_color "$ICyan" "chown Directories"
54+
chown "${htuser}":"${htgroup}" "${VMLOGS}"/
55+
chown "${htuser}":"${htgroup}" "${VMLOGS}"/nextcloud.log
56+
chown "${htuser}":"${htgroup}" "${VMLOGS}"/audit.log
5357
chown -R "${rootuser}":"${htgroup}" "${NCPATH}"/
54-
chown -R "${htuser}":"${htgroup}" "${VMLOGS}"/nextcloud.log
55-
chown -R "${htuser}":"${htgroup}" "${VMLOGS}"/audit.log
5658
chown -R "${htuser}":"${htgroup}" "${NCPATH}"/apps/
5759
chown -R "${htuser}":"${htgroup}" "${NCPATH}"/config/
5860
chown -R "${htuser}":"${htgroup}" "${NCPATH}"/themes/

0 commit comments

Comments
 (0)