From f17e169f690d42c9ee24481d39441c99b2c83025 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Wed, 12 Jun 2013 10:47:34 +0100 Subject: [PATCH] Add /usr/local/bin to the secure_path variable. This patch will append /usr/local/bin to the sudoers secure_path variable, by doing so commands prefixed with sudo will then find some binaries delivered by other elements in that path (e.g nova-rootwrap). Change-Id: I1ebad8b1932620559a3d90aa39298f9b12e636fd --- elements/fedora/pre-install.d/00-usr-local-bin-secure-path | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 elements/fedora/pre-install.d/00-usr-local-bin-secure-path diff --git a/elements/fedora/pre-install.d/00-usr-local-bin-secure-path b/elements/fedora/pre-install.d/00-usr-local-bin-secure-path new file mode 100755 index 00000000..addfc0c0 --- /dev/null +++ b/elements/fedora/pre-install.d/00-usr-local-bin-secure-path @@ -0,0 +1,3 @@ +#!/bin/bash + +sed -i '/secure_path/ s/$/:\/usr\/local\/bin/' /etc/sudoers