Browse code

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

Vincent Untz authored on 2012/06/12 21:18:57
Showing 1 changed files
... ...
@@ -145,14 +145,12 @@ if [[ $EUID -eq 0 ]]; then
145 145
     # ability to run sudo
146 146
     if [[ "$os_PACKAGE" = "deb" ]]; then
147 147
         dpkg -l sudo || apt_get update && install_package sudo
148
-        STACK_GROUP=sudo
149 148
     else
150 149
         rpm -qa | grep sudo || install_package sudo
151
-        STACK_GROUP=wheel
152 150
     fi
153 151
     if ! getent passwd stack >/dev/null; then
154 152
         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
156 154
     fi
157 155
 
158 156
     echo "Giving stack user passwordless sudo priviledges"