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