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
|
@ -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…
Add table
Add a link
Reference in a new issue