Commit 387ff5bc authored by Cooper, Caleb's avatar Cooper, Caleb

Update rse-bash-modules.sh

parent 05f4e9f1
......@@ -66,7 +66,7 @@ func_rse_make_sudo_account() {
NEW_UID=$((NEW_UID + 1))
done
if ! grep "^${NEW_ACCOUNT}" /etc/passwd; then
sudo useradd -m -u ${NEW_UID} -g ${NEW_UID} -s /bin/bash ${NEW_ACCOUNT}
sudo useradd -m -u ${NEW_UID} -s /bin/bash ${NEW_ACCOUNT}
fi
if [[ ! -e /etc/sudoers.d/${NEW_ACCOUNT} ]]; then
echo "${NEW_ACCOUNT} ALL=(ALL:ALL) NOPASSWD:ALL" > /tmp/${NEW_ACCOUNT}.sudo
......
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