mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
parent
1c15f644f5
commit
cc3c9dfcd7
1 changed files with 1 additions and 0 deletions
|
@ -64,6 +64,7 @@ def user_ssh_add_key(username, key, comment):
|
||||||
parents=True,
|
parents=True,
|
||||||
uid=user["uid"][0],
|
uid=user["uid"][0],
|
||||||
)
|
)
|
||||||
|
chmod(os.path.join(user["homeDirectory"][0], ".ssh"), 0o600)
|
||||||
|
|
||||||
# create empty file to set good permissions
|
# create empty file to set good permissions
|
||||||
write_to_file(authorized_keys_file, "")
|
write_to_file(authorized_keys_file, "")
|
||||||
|
|
Loading…
Add table
Reference in a new issue