From 056f169595881b67b7af75c5dcf89d184a8404d9 Mon Sep 17 00:00:00 2001 From: creme Date: Wed, 20 May 2020 15:21:28 +0200 Subject: [PATCH] fix file perms for user_info.json and user_updates.php --- bin/envs.net/envs_user_info.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/envs.net/envs_user_info.sh b/bin/envs.net/envs_user_info.sh index f31dfb7..739d4a4 100755 --- a/bin/envs.net/envs_user_info.sh +++ b/bin/envs.net/envs_user_info.sh @@ -264,7 +264,7 @@ EOM mv "$TMP_JSON" "$WWW_PATH"/users_info.json -chown root:www-data "$WWW_PATH"/users_info.json +chown www-data:www-data "$WWW_PATH"/users_info.json # @@ -275,7 +275,7 @@ LIST="$(stat --format=%Z\ %n /home/*/public_html/* | grep -v updated | grep -v y echo "$LIST" | perl /usr/local/bin/envs.net/envs_user_info_genpage.pl > /tmp/user_updates.php_tmp mv /tmp/user_updates.php_tmp "$WWW_PATH"/user_updates.php -chown root:www-data "$WWW_PATH"/user_updates.php +chown www-data:www-data "$WWW_PATH"/user_updates.php # @@ -287,4 +287,3 @@ chown root:www-data "$WWW_PATH"/user_updates.php # exit 0 -