From 9fe4df5f004435fa0b092dc15a3c5ab09090f45d Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 3 Sep 2021 11:59:12 -0600 Subject: [PATCH] add manpage for doas.d(5) --- GNUmakefile | 1 + doas.conf.5 | 1 + doas.d.5 | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 doas.d.5 diff --git a/GNUmakefile b/GNUmakefile index 2eef88e..423731c 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -24,6 +24,7 @@ install: ${PROG} ${MAN} chmod ${BINMODE} ${DESTDIR}${BINDIR}/${PROG} cp -f doas.1 ${DESTDIR}${MANDIR}/man1 cp -f doas.conf.5 ${DESTDIR}${MANDIR}/man5 + cp -f doas.d.5 ${DESTDIR}${MANDIR}/man5 uninstall: rm -f ${DESTDIR}${BINDIR}/${PROG} diff --git a/doas.conf.5 b/doas.conf.5 index e98bfbe..e90d512 100644 --- a/doas.conf.5 +++ b/doas.conf.5 @@ -143,6 +143,7 @@ permit nopass keepenv setenv { PATH } root as root .Ed .Sh SEE ALSO .Xr doas 1 , +.Xr doas.d 5 , .Xr syslogd 8 .Sh HISTORY The diff --git a/doas.d.5 b/doas.d.5 new file mode 100644 index 0000000..8f5f96a --- /dev/null +++ b/doas.d.5 @@ -0,0 +1,50 @@ +.\"Copyright (c) 2021 Ariadne Conill +.\" +.\"Permission to use, copy, modify, and distribute this software for any +.\"purpose with or without fee is hereby granted, provided that the above +.\"copyright notice and this permission notice appear in all copies. +.\" +.\"THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +.\"WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +.\"MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +.\"ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +.\"WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +.\"ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +.\"OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +.Dd $Mdocdate: October 9 2020 $ +.Dt DOAS.CONF 5 +.Os +.Sh NAME +.Nm doas.conf +.Nd doas configuration file +.Sh DESCRIPTION +The +.Xr doas 1 +utility executes commands as other users according to the rules +configured in either the configuration file or, optionally, the +configuration directory. The preference to use the configuration +file or configuration directory is determined at compile time, +.Xr doas 1 +will only consult one or the other. +.Pp +Configuration snippets stored in the configuration directory +follow the same rules as the classic +.Xr doas 1 +configuration file, documented in +.Xr doas.conf 5 . +They must end with the .conf extension, or they will be ignored. +.Pp +These snippets are read in alphabetical order and thus can be +ordered in the same way as other configuration directories. +.Sh FILES +.Bl -tag -width /etc/doas.d -compact +.It Pa /etc/doas.d +.Xr doas 1 +configuration directory. +.Sh SEE ALSO +.Xr doas 1 , +.Xr doas.conf 5 +.Sh HISTORY +The +.Nm +configuration directory first appeared in OpenDoas.