From 074784fec2548117e3ba845a8be283c9c60b4bb6 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 20 Jul 2024 00:59:11 +0200 Subject: [PATCH] Fix permission issues --- scripts/Common/OS/users.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Common/OS/users.fish b/scripts/Common/OS/users.fish index 7935b25b..2815ee06 100644 --- a/scripts/Common/OS/users.fish +++ b/scripts/Common/OS/users.fish @@ -11,7 +11,7 @@ for name in (echo "$users" | jq '.[]' --raw-output0 | string split0) set -l displayName (getUserConfig displayName --json) - useradd --create-home ( + sudo useradd --create-home ( if [ displayName != "null" ] echo "--comment" echo "$displayName" | jq --raw-output @@ -21,7 +21,7 @@ for name in (echo "$users" | jq '.[]' --raw-output0 | string split0) echo "Please Choose a New Password for User \`$name\`" - while ! passwd "$name" + while ! sudo passwd "$name" echo "An error occurred! Please try again." end end