Make a stack user. Fixes #35

This commit is contained in:
Vishvananda Ishaya 2011-10-01 00:37:27 -07:00
parent 0b5f29c70d
commit cd10164381

View file

@ -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 -U -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