From: tedu Date: Mon, 24 Jun 2019 14:45:52 +0000 (+0000) Subject: add an example hint that shows how original path can be retained X-Git-Tag: v6.6~11 X-Git-Url: http://git.armaanb.net/?p=opendoas.git;a=commitdiff_plain;h=3f08ab43f6e987220ef9711705368f1b49bde1cc add an example hint that shows how original path can be retained --- diff --git a/doas.conf.5 b/doas.conf.5 index 592b4b6..d7642bd 100644 --- a/doas.conf.5 +++ b/doas.conf.5 @@ -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