Commit 95b2e010 authored by Cooper, Caleb's avatar Cooper, Caleb

Update rse-bash-modules.sh

parent e11b97b2
......@@ -66,7 +66,7 @@ func_rse_make_sudo_account() {
NEW_UID=$((NEW_UID + 1))
done
if [[ ! -e /etc/sudoers.d/${NEW_ACCOUNT} ]]; then
echo "${NEW_ACCOUNT} ALL=(ALL:ALL) NOPASSWD:ALL" > /tmp/${NEW_ACCOUNT}.sudo
sudo echo "${NEW_ACCOUNT} ALL=(ALL:ALL) NOPASSWD:ALL" > /tmp/${NEW_ACCOUNT}.sudo
sudo mv /tmp/${NEW_ACCOUNT}.sudo /etc/sudoers.d/${NEW_ACCOUNT}
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment