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
This commit is contained in:
parent
03b437db0e
commit
f17e169f69
3
elements/fedora/pre-install.d/00-usr-local-bin-secure-path
Executable file
3
elements/fedora/pre-install.d/00-usr-local-bin-secure-path
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sed -i '/secure_path/ s/$/:\/usr\/local\/bin/' /etc/sudoers
|
Loading…
Reference in New Issue
Block a user