diskimage-builder/elements/rpm-distro/pre-install.d/00-allow-root-sudo

8 lines
175 B
Plaintext
Raw Normal View History

#!/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