Commit a3eec0c1 authored by Cooper, Caleb's avatar Cooper, Caleb

Update rse-bash-modules.sh

parent 95b2e010
......@@ -66,7 +66,8 @@ func_rse_make_sudo_account() {
NEW_UID=$((NEW_UID + 1))
done
if [[ ! -e /etc/sudoers.d/${NEW_ACCOUNT} ]]; then
sudo echo "${NEW_ACCOUNT} ALL=(ALL:ALL) NOPASSWD:ALL" > /tmp/${NEW_ACCOUNT}.sudo
echo "${NEW_ACCOUNT} ALL=(ALL:ALL) NOPASSWD:ALL" > /tmp/${NEW_ACCOUNT}.sudo
chown root:root /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