Skip to content

Commit 3378b3a

Browse files
vuntzopenstack-gerrit
authored andcommitted
Stop adding the stack user to the sudo or wheel group
This is not needed since we explicitly add a sudoers rule for the stack user. Change-Id: I4c63ab25811d55b7eee2677c954133dc3e7ae397
1 parent c634ccd commit 3378b3a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stack.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,12 @@ if [[ $EUID -eq 0 ]]; then
145145
# ability to run sudo
146146
if [[ "$os_PACKAGE" = "deb" ]]; then
147147
dpkg -l sudo || apt_get update && install_package sudo
148-
STACK_GROUP=sudo
149148
else
150149
rpm -qa | grep sudo || install_package sudo
151-
STACK_GROUP=wheel
152150
fi
153151
if ! getent passwd stack >/dev/null; then
154152
echo "Creating a user called stack"
155-
useradd -U -G $STACK_GROUP -s /bin/bash -d $DEST -m stack
153+
useradd -U -s /bin/bash -d $DEST -m stack
156154
fi
157155

158156
echo "Giving stack user passwordless sudo priviledges"

0 commit comments

Comments
 (0)