Re: doas and */sbin/* commands

[email protected]
Newsgroups gmane.os.freebsd.questions
Message-ID <[email protected]>
I think I understand this now. The search for the command specified as
part of doas' arguments happens *before* the environment is switched.
So, because I lack the sbin directories in my normal user's PATH (on
purpose), nothing I configure about the target PATH or target
environment in general will help. :-(

My workaround is a wrapper that runs doas with an enriched ambient
PATH.

For non-interactive jobs, it's also possible to pipe the command into
a shell, i.e.

   echo service | doas -S

but this breaks for interactive programs like vi.

-- 
Ian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.