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:
parent
d3d7916b58
commit
44c47586ea
@ -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)
|
||||
|
@ -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…
Reference in New Issue
Block a user