Fix potential permission problems

main
Florent Daigniere 2 years ago
parent d3d7916b58
commit 44c47586ea

@ -5,7 +5,9 @@ import logging as log
from pwd import getpwnam from pwd import getpwnam
import sys 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') mailu_id = getpwnam('mailu')
os.setgid(mailu_id.pw_gid) os.setgid(mailu_id.pw_gid)
os.setuid(mailu_id.pw_uid) os.setuid(mailu_id.pw_uid)

@ -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

Loading…
Cancel
Save