Skip to content

Commit 88ca6e4

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Stop adding the stack user to the sudo or wheel group"
2 parents 5a70e3f + 3378b3a commit 88ca6e4

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
@@ -168,14 +168,12 @@ if [[ $EUID -eq 0 ]]; then
168168
# ability to run sudo
169169
if [[ "$os_PACKAGE" = "deb" ]]; then
170170
dpkg -l sudo || apt_get update && install_package sudo
171-
STACK_GROUP=sudo
172171
else
173172
rpm -qa | grep sudo || install_package sudo
174-
STACK_GROUP=wheel
175173
fi
176174
if ! getent passwd stack >/dev/null; then
177175
echo "Creating a user called stack"
178-
useradd -U -G $STACK_GROUP -s /bin/bash -d $DEST -m stack
176+
useradd -U -s /bin/bash -d $DEST -m stack
179177
fi
180178

181179
echo "Giving stack user passwordless sudo priviledges"

0 commit comments

Comments
 (0)