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
|
@ -1,6 +1,7 @@
|
|||
Changelog
|
||||
=========
|
||||
|
||||
* :support:`-` restrict permissions of mailbox base directories to be read only
|
||||
* :feature:`-` add new mailbox handling tasks
|
||||
:py:func:`osusers.tasks.create_file_mailbox` and
|
||||
:py:func:`osusers.tasks.delete_file_mailbox`
|
||||
|
|
|
@ -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…
Reference in a new issue