--- embedaddon/sudo/doc/visudo.man.in 2013/07/22 10:46:12 1.1.1.4 +++ embedaddon/sudo/doc/visudo.man.in 2014/06/15 16:12:54 1.1.1.6 @@ -1,7 +1,7 @@ .\" DO NOT EDIT THIS FILE, IT IS NOT THE MASTER! .\" IT IS GENERATED AUTOMATICALLY FROM visudo.mdoc.in .\" -.\" Copyright (c) 1996,1998-2005, 2007-2012 +.\" Copyright (c) 1996,1998-2005, 2007-2014 .\" Todd C. Miller .\" .\" Permission to use, copy, modify, and distribute this software for any @@ -21,7 +21,7 @@ .\" Agency (DARPA) and Air Force Research Laboratory, Air Force .\" Materiel Command, USAF, under agreement number F39502-99-1-0512. .\" -.TH "VISUDO" "@mansectsu@" "June 12, 2013" "Sudo @PACKAGE_VERSION@" "System Manager's Manual" +.TH "VISUDO" "@mansectsu@" "February 15, 2014" "Sudo @PACKAGE_VERSION@" "System Manager's Manual" .nh .if n .ad l .SH "NAME" @@ -32,6 +32,7 @@ \fBvisudo\fR [\fB\-chqsV\fR] [\fB\-f\fR\ \fIsudoers\fR] +[\fB\-x\fR\ \fIfile\fR] .SH "DESCRIPTION" \fBvisudo\fR edits the @@ -123,7 +124,7 @@ the line where the error occurred (if the editor suppo .PP The options are as follows: .TP 12n -\fB\-c\fR +\fB\-c\fR, \fB\--check\fR Enable \fIcheck-only\fR mode. @@ -143,12 +144,11 @@ If an error is encountered, \fBvisudo\fR will exit with a value of 1. .TP 12n -\fB\-f\fR \fIsudoers\fR -.br +\fB\-f\fR \fIsudoers\fR, \fB\--file\fR=\fIsudoers\fR Specify an alternate \fIsudoers\fR file location. -With this option +With this option, \fBvisudo\fR will edit (or check) the \fIsudoers\fR @@ -170,15 +170,10 @@ indicating that \fIsudoers\fR will be read from the standard input. .TP 12n -\fB\-h\fR -The -\fB\-h\fR (\fIhelp\fR) -option causes -\fBvisudo\fR -to print a short help message -to the standard output and exit. +\fB\-h\fR, \fB\--help\fR +Display a short help message to the standard output and exit. .TP 12n -\fB\-q\fR +\fB\-q\fR, \fB\--quiet\fR Enable \fIquiet\fR mode. @@ -188,7 +183,7 @@ the \fB\-c\fR option. .TP 12n -\fB\-s\fR +\fB\-s\fR, \fB\--strict\fR Enable \fIstrict\fR checking of the @@ -203,13 +198,33 @@ letters, digits, and the underscore (\(oq_\(cq) character. .TP 12n -\fB\-V\fR -The -\fB\-V\fR (\fIversion\fR) -option causes +\fB\-V\fR, \fB\--version\fR +Print the \fBvisudo\fR -to print its version number -and exit. +and +\fIsudoers\fR +grammar versions and exit. +.TP 12n +\fB\-x\fR \fIfile\fR, \fB\--export\fR=\fIfile\fR +Export +\fIsudoers\fR +in JSON format and write it to +\fIfile\fR. +If +\fIfile\fR +is +\(oq-\(cq, +the exported +\fIsudoers\fR +policy will be written to the standard output. +The exported format is intended to be easier for third-party +applications to parse than the traditional +\fIsudoers\fR +format. +The various values have explicit types which removes much of the +ambiguity of the +\fIsudoers\fR +format. .SH "ENVIRONMENT" The following environment variables may be consulted depending on the value of the