specify the sudo group as addition groups - since otherwise dashboard doesn't work
This commit is contained in:
parent
0b5f29c70d
commit
022ed04ea0
1 changed files with 1 additions and 1 deletions
2
stack.sh
2
stack.sh
|
@ -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…
Reference in a new issue