8 lines
175 B
Text
8 lines
175 B
Text
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
# 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
|