You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2022/01/18 10:03:27 UTC
[incubator-datalab] 01/01: [DATALAB-2636]: fixed datalab-user authorized_keys file modes of access
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2636
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 2401c9eaa1d0dfe258b30db64e025836f1090e9b
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Tue Jan 18 12:02:12 2022 +0200
[DATALAB-2636]: fixed datalab-user authorized_keys file modes of access
---
infrastructure-provisioning/src/base/scripts/install_user_key.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/infrastructure-provisioning/src/base/scripts/install_user_key.py b/infrastructure-provisioning/src/base/scripts/install_user_key.py
index 2e68abd..1de241b 100644
--- a/infrastructure-provisioning/src/base/scripts/install_user_key.py
+++ b/infrastructure-provisioning/src/base/scripts/install_user_key.py
@@ -53,6 +53,7 @@ def copy_key(config):
conn.sudo('echo "{0}" >> /home/{1}/.ssh/authorized_keys'.format(key, args.user))
except:
print('No user key')
+ conn.sudo('chmod 600 /home/{0}/.ssh/authorized_keys'.format(args.user))
##############
# Run script #
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org