From 105268b7bc9a9deeffe9376bb8f894d7f8c12894 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 8668210f..ee4cf41f 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 echo "$displayName" | jq --exit-status > /dev/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