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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
