From 9eda303f5f8c430581e2f1e82c95f05a67583674 Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Tue, 9 Apr 2013 16:45:15 -0700 Subject: [PATCH] Fedora element allows root to sudo without TTY. The root user tries to `sudo -u stack`, without a tty, causing fedora+devstack images builds to fail in Jenkins. Change-Id: Ia0a7fb315cf9bd17cf250e70dba06363a697c97c --- elements/fedora/pre-install.d/00-allow-root-sudo | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 elements/fedora/pre-install.d/00-allow-root-sudo diff --git a/elements/fedora/pre-install.d/00-allow-root-sudo b/elements/fedora/pre-install.d/00-allow-root-sudo new file mode 100755 index 00000000..4736ac8a --- /dev/null +++ b/elements/fedora/pre-install.d/00-allow-root-sudo @@ -0,0 +1,7 @@ +#!/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