From e73c10fd80ea67e0e51acb0c1ebf7efd813c6919 Mon Sep 17 00:00:00 2001 From: bunkerity Date: Fri, 9 Apr 2021 10:01:23 +0200 Subject: [PATCH] crowdsec - fix permissions on /usr/local/lib/lua and on /var/log files --- prepare.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prepare.sh b/prepare.sh index 2bbd32b..467a4ba 100644 --- a/prepare.sh +++ b/prepare.sh @@ -40,6 +40,7 @@ chmod 770 /var/log/letsencrypt touch /var/log/clamav.log chown root:nginx /var/log/clamav.log chmod 770 /var/log/clamav.log +find /var/log -type f -exec chmod 0774 {} \; # prepare /acme-challenge mkdir /acme-challenge @@ -69,6 +70,8 @@ chmod -R 770 /var/run/fail2ban /var/lib/fail2ban # prepare /usr/local/lib/lua chown root:nginx /usr/local/lib/lua chmod 770 /usr/local/lib/lua +find /usr/local/lib/lua -type f -exec chmod 0760 {} \; +find /usr/local/lib/lua -type d -exec chmod 0770 {} \; # prepare /cache mkdir /cache