Merge "Allow sudo access without a controlling terminal"
This commit is contained in:
commit
26e57cbb4c
1
stack.sh
1
stack.sh
@ -195,6 +195,7 @@ echo "$STACK_USER ALL=(root) NOPASSWD:ALL" >$TEMPFILE
|
|||||||
# Some binaries might be under /sbin or /usr/sbin, so make sure sudo will
|
# Some binaries might be under /sbin or /usr/sbin, so make sure sudo will
|
||||||
# see them by forcing PATH
|
# see them by forcing PATH
|
||||||
echo "Defaults:$STACK_USER secure_path=/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin" >> $TEMPFILE
|
echo "Defaults:$STACK_USER secure_path=/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin" >> $TEMPFILE
|
||||||
|
echo "Defaults:$STACK_USER !requiretty" >> $TEMPFILE
|
||||||
chmod 0440 $TEMPFILE
|
chmod 0440 $TEMPFILE
|
||||||
sudo chown root:root $TEMPFILE
|
sudo chown root:root $TEMPFILE
|
||||||
sudo mv $TEMPFILE /etc/sudoers.d/50_stack_sh
|
sudo mv $TEMPFILE /etc/sudoers.d/50_stack_sh
|
||||||
|
Loading…
Reference in New Issue
Block a user