sftp directories are now owned by root instead of user

This commit is contained in:
Jan Dittberner 2014-12-26 23:58:22 +01:00
parent 6a8a66f7d8
commit b362693911
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,8 @@
Changelog
=========
* :bug:`-` sftp directories are now owned by root instead of user
* :release:`0.1.0 <2014-12-26>`
* :support:`-` configure celery task serialization, add routing for ldap tasks

View file

@ -76,7 +76,7 @@ def setup_file_sftp_userdir(username):
sftp_directory = _build_sftp_directory_name(username)
try:
subprocess.check_output([
SUDO_CMD, INSTALL_CMD, '-o', username, '-g', username,
SUDO_CMD, INSTALL_CMD, '-o', 'root', '-g', username,
'-m', '0750', '-d', sftp_directory], stderr=subprocess.STDOUT)
subprocess.check_output([
SUDO_CMD, SETFACL_CMD, '-m', 'www-data:--x',