aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marie Cannie <jmc@openbsd.org>2015-07-22 06:30:12 +0000
committerJean-Marie Cannie <jmc@openbsd.org>2015-07-22 06:30:12 +0000
commitfec01c17ec1cde1df449f76e5bda10e7afae2e05 (patch)
tree6e53fea6db9d2a27f132b752a289420c3f51f9c7
parent3d4a67e24708199e456761db47f9962f3772f555 (diff)
downloadopendoas-fec01c17ec1cde1df449f76e5bda10e7afae2e05.tar.gz
tweak previous; ok zhuk
-rw-r--r--doas.conf.515
1 files changed, 6 insertions, 9 deletions
diff --git a/doas.conf.5 b/doas.conf.5
index 7510bd0..6f93164 100644
--- a/doas.conf.5
+++ b/doas.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: doas.conf.5,v 1.7 2015/07/20 20:18:45 tedu Exp $
+.\" $OpenBSD: doas.conf.5,v 1.8 2015/07/21 11:04:06 zhuk Exp $
.\"
.\"Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
.\"
@@ -13,7 +13,7 @@
.\"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: July 20 2015 $
+.Dd $Mdocdate: July 21 2015 $
.Dt DOAS.CONF 5
.Os
.Sh NAME
@@ -33,9 +33,7 @@ The rules have the following format:
.Op Ar options
.Ar identity
.Op Ic as Ar target
-.Oo
-.Ic cmd Ar command Op Ic args ...
-.Oc
+.Op Ic cmd Ar command Op Ic args ...
.Ed
.Pp
Rules consist of the following parts:
@@ -73,11 +71,10 @@ The default is root.
The command the user is allowed or denied to run.
The default is all commands.
Be advised that it's best to specify absolute paths.
-.It Ic args Op ...
+.It Ic args ...
Arguments to command.
-If specified, the command arguments set provided by user and
-the command arguments set in rule should be the same for successful
-rule match.
+If specified, the command arguments provided by the user
+need to match for the command to be successful.
Specifying
.Ic args
alone means that command should be run without any arguments.