2013-04-09 23:45:15 +00:00
|
|
|
#!/bin/bash
|
2014-03-29 03:28:22 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
2013-04-09 23:45:15 +00:00
|
|
|
|
|
|
|
# root can not sudo without a tty by default.
|
|
|
|
echo "Defaults:root !requiretty" >> /etc/sudoers.d/root-notty
|
|
|
|
chmod 0440 /etc/sudoers.d/root-notty
|
|
|
|
visudo -c
|