From 3c5d94fa74577b25ad476791a8de6b7984551c34 Mon Sep 17 00:00:00 2001 From: murtaugh Date: Mon, 2 Nov 2020 14:07:37 +0100 Subject: [PATCH] Update 'make_user_accounts.py' --- make_user_accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_user_accounts.py b/make_user_accounts.py index 0c94311..8e33d5a 100644 --- a/make_user_accounts.py +++ b/make_user_accounts.py @@ -48,7 +48,7 @@ for username in usernames: with open("jupyter_notebook_config.temp.py", "w") as f: print (nbconfig.render(**userdata), file=f) os.system(f"sudo mv jupyter_notebook_config.temp.py /home/{username}/.jupyter/jupyter_notebook_config.py") - os.system(f"sudo chown {username}:{username} /home/{username}/.jupyter/jupyter_notebook_config.py") + os.system(f"sudo chown -R {username}:{username} /home/{username}/.jupyter") else: print (nbconfig.render(**userdata)) print()