8 lines
175 B
Plaintext
8 lines
175 B
Plaintext
|
#!/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
|