Fix permission issues

This commit is contained in:
Manuel Thalmann 2024-07-20 00:59:11 +02:00
parent 2150086ea8
commit 105268b7bc

View file

@ -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