for those of you missing sudo's ability to remember your password for repeated
invocations, a sneaky workaround...

create a new user _doas. make a doas.conf like the following.

permit :wheel as _doas cmd ksh
permit nopass _doas

If you need to run multiple commands, start a shell as this new _doas user.
Then run whatever you like, using doas. The _doas user doesn't actually have
any privileges, so this isn't like running ksh as root. They still run
everything through doas, so it gets logged, etc. When you're done, logout and
you're back to typing your password.

(I was working on a small diff to let doas do this for you when I realized I
think all the pieces are already in place.)

Reply via email to