]> git.armaanb.net Git - opendoas.git/commitdiff
add an example hint that shows how original path can be retained
authortedu <tedu>
Mon, 24 Jun 2019 14:45:52 +0000 (14:45 +0000)
committerDuncan Overbruck <mail@duncano.de>
Sat, 19 Oct 2019 12:59:03 +0000 (14:59 +0200)
doas.conf.5

index 592b4b66e77e6004e9bcee7f464be212c13b21dc..d7642bdebf4fed54b41a90c07d1e092b9e834eab 100644 (file)
@@ -127,11 +127,13 @@ and
 unsetting
 .Ev ENV ;
 permits tedu to run procmap as root without a password;
-and additionally permits root to run unrestricted commands as itself.
+and additionally permits root to run unrestricted commands as itself
+while retaining the original PATH.
 .Bd -literal -offset indent
 permit persist setenv { PKG_CACHE PKG_PATH } aja cmd pkg_add
 permit setenv { -ENV PS1=$DOAS_PS1 SSH_AUTH_SOCK } :wheel
 permit nopass tedu as root cmd /usr/sbin/procmap
+permit nopass keepenv setenv { PATH=$PATH } root as root
 .Ed
 .Sh SEE ALSO
 .Xr doas 1