Fix permission issues
This commit is contained in:
parent
2150086ea8
commit
105268b7bc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue