Merge "Stop adding the stack user to the sudo or wheel group"
This commit is contained in:
commit
88ca6e493b
4
stack.sh
4
stack.sh
@ -168,14 +168,12 @@ if [[ $EUID -eq 0 ]]; then
|
|||||||
# ability to run sudo
|
# ability to run sudo
|
||||||
if [[ "$os_PACKAGE" = "deb" ]]; then
|
if [[ "$os_PACKAGE" = "deb" ]]; then
|
||||||
dpkg -l sudo || apt_get update && install_package sudo
|
dpkg -l sudo || apt_get update && install_package sudo
|
||||||
STACK_GROUP=sudo
|
|
||||||
else
|
else
|
||||||
rpm -qa | grep sudo || install_package sudo
|
rpm -qa | grep sudo || install_package sudo
|
||||||
STACK_GROUP=wheel
|
|
||||||
fi
|
fi
|
||||||
if ! getent passwd stack >/dev/null; then
|
if ! getent passwd stack >/dev/null; then
|
||||||
echo "Creating a user called stack"
|
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
|
fi
|
||||||
|
|
||||||
echo "Giving stack user passwordless sudo priviledges"
|
echo "Giving stack user passwordless sudo priviledges"
|
||||||
|
Loading…
Reference in New Issue
Block a user