Merge "Stop adding the stack user to the sudo or wheel group"

This commit is contained in:
Jenkins 2012-07-03 18:47:08 +00:00 committed by Gerrit Code Review
commit 88ca6e493b

View File

@ -168,14 +168,12 @@ if [[ $EUID -eq 0 ]]; then
# ability to run sudo
if [[ "$os_PACKAGE" = "deb" ]]; then
dpkg -l sudo || apt_get update && install_package sudo
STACK_GROUP=sudo
else
rpm -qa | grep sudo || install_package sudo
STACK_GROUP=wheel
fi
if ! getent passwd stack >/dev/null; then
echo "Creating a user called stack"
useradd -U -G $STACK_GROUP -s /bin/bash -d $DEST -m stack
useradd -U -s /bin/bash -d $DEST -m stack
fi
echo "Giving stack user passwordless sudo priviledges"