Commit d8a21b67 authored by Cooper, Caleb's avatar Cooper, Caleb
Browse files

Update rse-bash-modules.sh

parent c3c47deb
......@@ -33,4 +33,17 @@ func_rse_make_sudo_account() {
sudo useradd -u ${NEW_UID} -s /bin/bash -m -G wheel ${NEW_ACCOUNT} || true
fi
echo -e "${NEW_PASS}\n${NEW_PASS}" | sudo passwd ${NEW_ACCOUNT}
}
func_rse_set_authorized_keys() {
ACCOUNT="${1}"
AUTH_KEYS="${2}"
chmod 644 ${AUTH_KEYS}
sudo -u mkdir -p ${HOME}/.ssh
sudo -u ${ACCOUNT} cp "${AUTH_KEYS}" ${HOME}/.ssh/authorized_keys
}
func_rse_remove_account() {
ACCOUNT="${1}"
sudo userdel -r ${ACCOUNT}
}
\ No newline at end of file
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