From 3ff1137b21fe97685968eddc1456f76ec91b8fbe Mon Sep 17 00:00:00 2001 From: f Date: Sat, 4 Feb 2023 17:38:55 -0300 Subject: [PATCH] fix: install database as nobody --- access_logd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access_logd.sh b/access_logd.sh index 9739c18..a252b5b 100755 --- a/access_logd.sh +++ b/access_logd.sh @@ -7,7 +7,7 @@ test -n "$ACCESS_LOGS_FLAGS" || exit 1 umask 007 # Copy default database -install -m 640 /var/lib/access_log.sqlite3 /var/log/access_log.sqlite3 +install -m 640 -o nobody /var/lib/access_log.sqlite3 /var/log/access_log.sqlite3 # Read from fifo and load into database daemonize -p /run/access_logd.pid -u nobody /usr/bin/access_log $ACCESS_LOGS_FLAGS