restrict permissions of mailbox base directories to be read only

This commit is contained in:
Jan Dittberner 2014-12-27 14:50:00 +01:00
parent a285133f75
commit 7aeefd9a80
2 changed files with 2 additions and 1 deletions

View file

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

View file

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