From 3f08ab43f6e987220ef9711705368f1b49bde1cc Mon Sep 17 00:00:00 2001 From: tedu Date: Mon, 24 Jun 2019 14:45:52 +0000 Subject: [PATCH] add an example hint that shows how original path can be retained --- doas.conf.5 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2