restrict permissions of mailbox base directories to be read only
This commit is contained in:
parent
a285133f75
commit
7aeefd9a80
2 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,7 @@ def setup_file_mail_userdir(username):
|
|||
try:
|
||||
subprocess.check_output([
|
||||
SUDO_CMD, INSTALL_CMD, '-o', username, '-g', username,
|
||||
'-m', '0750', '-d', mail_directory], stderr=subprocess.STDOUT)
|
||||
'-m', '0500', '-d', mail_directory], stderr=subprocess.STDOUT)
|
||||
except subprocess.CalledProcessError:
|
||||
_logger.exception(
|
||||
'could not create mail base directory for user %s', username)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue