mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1642 from YunoHost/fix-ssh-user
User .ssh directory should be executable
This commit is contained in:
commit
04edce8948
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ def user_ssh_add_key(username, key, comment):
|
|||
parents=True,
|
||||
uid=user["uid"][0],
|
||||
)
|
||||
chmod(os.path.join(user["homeDirectory"][0], ".ssh"), 0o600)
|
||||
chmod(os.path.join(user["homeDirectory"][0], ".ssh"), 0o700)
|
||||
|
||||
# create empty file to set good permissions
|
||||
write_to_file(authorized_keys_file, "")
|
||||
|
|
Loading…
Add table
Reference in a new issue