opendoas

my fork of doas with custom prompt
git clone git://git.kocotian.pl/opendoas.git
Log | Files | Refs | README | LICENSE

commit 3f08ab43f6e987220ef9711705368f1b49bde1cc
parent 45b802a030ade925dbff39af816671b3f9eedd81
Author: tedu <tedu>
Date:   Mon, 24 Jun 2019 14:45:52 +0000

add an example hint that shows how original path can be retained

Diffstat:
Mdoas.conf.5 | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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