restrict umask of htpasswd file

This commit is contained in:
Michael Eischer
2025-04-14 22:25:59 +02:00
parent 0ed9de379e
commit 95538fe956
2 changed files with 14 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ if [ -n "$DISABLE_AUTHENTICATION" ]; then
OPTIONS="--no-auth $OPTIONS"
else
if [ ! -f "$PASSWORD_FILE" ]; then
touch "$PASSWORD_FILE"
( umask 027 && touch "$PASSWORD_FILE" )
fi
if [ ! -s "$PASSWORD_FILE" ]; then