sftp directories are now owned by root instead of user
This commit is contained in:
parent
6a8a66f7d8
commit
b362693911
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue