1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Fix potential permission problems

This commit is contained in:
Florent Daigniere 2022-11-21 17:50:57 +01:00
parent d3d7916b58
commit 44c47586ea
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,9 @@ import logging as log
from pwd import getpwnam
import sys
os.system("chown mailu:mailu -R /data /dkim")
os.system("chown mailu:mailu -R /dkim")
os.system("find /data | grep -v /fetchmail | xargs -n1 chown mailu:mailu")
os.system("find /var/lib/rspamd | grep -v /filter | xargs -n1 chown mailu:mailu")
mailu_id = getpwnam('mailu')
os.setgid(mailu_id.pw_gid)
os.setuid(mailu_id.pw_uid)

View File

@ -1 +1 @@
Upgrade to Alpine 3.16.3; Make setup, admin and rspamd run without root privs.
Upgrade to Alpine 3.16.3; Make setup, admin and rspamd run without root privs. Please ensure that your folder overrides/rspamd is owned by 1000:1000