fixing stack's passwdless sudo
This commit is contained in:
parent
e19f565b32
commit
6e9fae0d27
1 changed files with 1 additions and 1 deletions
2
stack.sh
2
stack.sh
|
@ -47,7 +47,7 @@ if [[ $EUID -eq 0 ]]; then
|
||||||
useradd -U -G sudo -s /bin/bash -m stack
|
useradd -U -G sudo -s /bin/bash -m stack
|
||||||
fi
|
fi
|
||||||
echo "Making sure stack has passwordless sudo"
|
echo "Making sure stack has passwordless sudo"
|
||||||
sed -i "/^%sudo/ { / ALL/ { s/ ALL/ NOPASSWD:ALL/ }}" /etc/sudoers
|
echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
echo "Copying files to stack user"
|
echo "Copying files to stack user"
|
||||||
cp -r -f `pwd` /home/stack/
|
cp -r -f `pwd` /home/stack/
|
||||||
THIS_DIR=$(basename $(dirname $(readlink -f $0)))
|
THIS_DIR=$(basename $(dirname $(readlink -f $0)))
|
||||||
|
|
Loading…
Reference in a new issue