specify the sudo group as addition groups - since otherwise dashboard doesn't work

main
Jesse Andrews 13 years ago
parent 0b5f29c70d
commit 022ed04ea0

@ -44,7 +44,7 @@ if [[ $EUID -eq 0 ]]; then
apt-get install -y sudo
if ! getent passwd | grep -q stack; then
echo "Creating a user called stack"
useradd -g sudo -s /bin/bash -m stack
useradd -G sudo -s /bin/bash -m stack
fi
echo "Making sure stack has passwordless sudo"
sed -i "/^%sudo/ { / ALL/ { s/ ALL/ NOPASSWD:ALL/ }}" /etc/sudoers

Loading…
Cancel
Save