From 4b660e499820a1d2f754c2e155d52964d6f510f3 Mon Sep 17 00:00:00 2001 From: "Kevin C. Wells" Date: Fri, 3 Aug 2018 18:33:46 -0700 Subject: [PATCH] Fix sudo account password error message Recent changes to the Clear Linux base image cause the final line in the setup.py script to yield an error message and exit. There are numerous ways this could be fixed, but this fix (suggested by @shrmrf) is the minimal change needed. Signed-off-by: Kevin C. Wells --- clr-sdk/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clr-sdk/setup.py b/clr-sdk/setup.py index 870d63a..b768467 100755 --- a/clr-sdk/setup.py +++ b/clr-sdk/setup.py @@ -75,6 +75,6 @@ except FileExistsError: # Move to mixdir and start bash as new user os.chdir(mixdir) -cmd = "sudo -H -u {} bash -i".format(user).split() +cmd = "su {}".format(user).split() os.execvp(cmd[0], cmd)