sudoers: set Defaults secure_path to have sane default settings
[grml-live.git] / etc / grml / fai / config / files / etc / sudoers / GRMLBASE
index fa78cc0..7a46342 100644 (file)
@@ -2,6 +2,10 @@
 # This file MUST be edited with the "visudo" command as root.
 # See the man page for details on how to write a sudoers file.
 
+# This file was deployed via grml-live's
+# ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/20-sudo script, using
+# ${GRML_FAI_CONFIG}/config/files/etc/sudoers/GRMLBASE
+
 # Host alias specification
 
 # User alias specification
@@ -16,6 +20,9 @@ root    ALL=(ALL) ALL
 # WARNING: Never allow external access to the $USERNAME user!!!
 $USERNAME    ALL=NOPASSWD: ALL
 
+# Path used for every command run from sudo
+Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
+
 # allow editing of files with editor:
 # $USERNAME ALL=NOPASSWD: sudoedit