2016-01-01 2:39 GMT+03:00 Amit Kulkarni <[email protected]>:
> I just switched from sudo to doas and was stumped by this.
>
> The doas code expects doas.conf in /etc yet the manpage does not explicitly
> make that clear. I added a SYNOPSIS like in "man login.conf".
>
> Thanks
>
> Index: doas.conf.5
> ===================================================================
> RCS file: /cvs/src/usr.bin/doas/doas.conf.5,v
> retrieving revision 1.16
> diff -u -p -u -p -r1.16 doas.conf.5
> --- doas.conf.5 1 Sep 2015 13:20:53 -0000       1.16
> +++ doas.conf.5 31 Dec 2015 23:39:23 -0000
> @@ -19,12 +19,14 @@
>  .Sh NAME
>  .Nm doas.conf
>  .Nd doas configuration file
> +.Sh SYNOPSIS
> +.Nm /etc/doas.conf
>  .Sh DESCRIPTION
>  The
>  .Xr doas 1
>  utility executes commands as other users according to the rules
> -in the
> -.Nm
> +in
> +.Nm /etc/doas.conf
>  configuration file.
>  .Pp
>  The rules have the following format:

I think it's rather the login.conf(5) is wrong here... And the default
file placement is usually shown in the FILES section.

On the other side, the /etc is default system configuration directory
anyway, so /etc/doas.conf should be the first, obvious guess... no?

--
  WBR,
  Vadim Zhukov

Reply via email to