Re: doas and */sbin/* commands
| 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