Add full path for useradd

This commit is contained in:
Tanguy Herbron 2022-06-12 21:40:40 +02:00
parent 1317aabeb1
commit e1c29f1bb7

View File

@ -37,7 +37,7 @@ check_sudo_installation() {
create_default_user() { create_default_user() {
echo ">>> Adding creator user..." >&2 echo ">>> Adding creator user..." >&2
useradd -m -G sudo creator /sbin/useradd -m -G sudo creator
echo ">>> Updating creator password..." >&2 echo ">>> Updating creator password..." >&2
sed -i 's/creator:\*:/creator:\$6\$saltsalt\$EamwjkVXAe1WqiTTXuzgsmljl5cpVewMLH3xl8TdvQ\/V4S9e30upeNz2bdLkG5\.H71TCEso5Nl0jpyZRx7xy6\/:/g' /etc/shadow sed -i 's/creator:\*:/creator:\$6\$saltsalt\$EamwjkVXAe1WqiTTXuzgsmljl5cpVewMLH3xl8TdvQ\/V4S9e30upeNz2bdLkG5\.H71TCEso5Nl0jpyZRx7xy6\/:/g' /etc/shadow