On 2020-10-09, Klemens Nanni wrote:
> In case `cmd' and `args' in doas.conf(5) do not match, the generated
> log message is unclear and might be read as if the command executed but
> failed, i.e. returned non-zero:
> 
>       # cat /etc/doas.conf
>       permit nopass kn cmd echo args foo
>       $ doas echo foo
>       foo
>       $ doas echo bar
>       doas: Operation not permitted
> 
> The corresponding syslog(3) messages from /var/log/secure:
> 
>       Oct  9 01:05:14 eru doas: kn ran command echo foo as root from /home/kn
>       Oct  9 01:05:20 eru doas: failed command for kn: echo bar
> 
> The following reads unambiguous and better matches the EPERM wording:
> 
>       Oct  9 01:05:20 eru doas: command not permitted for kn: echo bar

ok, i think that wording was just copy/paste.

Reply via email to