Make sudo set a special path for calls as archvsync user
authorBastian Blank <waldi@debian.org>
Thu, 30 Nov 2017 19:56:06 +0000 (20:56 +0100)
committerBastian Blank <waldi@debian.org>
Thu, 30 Nov 2017 19:56:06 +0000 (20:56 +0100)
This allows consumers (primarily dak) to call tools of the archvsync
user without path.  This makes later switch to the packaged version
easier.

modules/sudo/files/sudoers

index be43b13..0f2f959 100644 (file)
@@ -21,6 +21,8 @@ Defaults      env_reset
 Defaults       passprompt="[sudo] password for %u on %h: "
 Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
 
+Defaults>archvsync secure_path="/home/archvsync/bin:/usr/local/bin:/usr/bin:/bin"
+
 # Host alias specification
 Host_Alias     VOIPHOSTS       = vogler
 Host_Alias     WEBHOSTS        = wolkenstein