version 1.1.1.3, 2013/10/14 07:56:34
|
version 1.1.1.4, 2014/06/15 16:12:54
|
Line 1
|
Line 1
|
.\" |
.\" |
.\" Copyright (c) 1996,1998-2005, 2007-2013 | .\" Copyright (c) 1996,1998-2005, 2007-2014 |
.\" Todd C. Miller <Todd.Miller@courtesan.com> |
.\" Todd C. Miller <Todd.Miller@courtesan.com> |
.\" |
.\" |
.\" Permission to use, copy, modify, and distribute this software for any |
.\" Permission to use, copy, modify, and distribute this software for any |
Line 19
|
Line 19
|
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force |
.\" Agency (DARPA) and Air Force Research Laboratory, Air Force |
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512. |
.\" Materiel Command, USAF, under agreement number F39502-99-1-0512. |
.\" |
.\" |
.Dd August 14, 2013 | .Dd February 15, 2014 |
.Dt VISUDO @mansectsu@ |
.Dt VISUDO @mansectsu@ |
.Os Sudo @PACKAGE_VERSION@ |
.Os Sudo @PACKAGE_VERSION@ |
.Sh NAME |
.Sh NAME |
Line 28
|
Line 28
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm visudo |
.Nm visudo |
.Op Fl chqsV |
.Op Fl chqsV |
.Bk -words |
|
.Op Fl f Ar sudoers |
.Op Fl f Ar sudoers |
.Ek | .Op Fl x Ar file |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm visudo |
.Nm visudo |
edits the |
edits the |
Line 141 will exit with a value of 0.
|
Line 140 will exit with a value of 0.
|
If an error is encountered, |
If an error is encountered, |
.Nm visudo |
.Nm visudo |
will exit with a value of 1. |
will exit with a value of 1. |
.It Fl f Ar sudoers , Fl -file Ns No = Ns Ar sudoers | .It Fl f Ar sudoers , Fl -file Ns = Ns Ar sudoers |
Specify an alternate |
Specify an alternate |
.Em sudoers |
.Em sudoers |
file location. |
file location. |
Line 197 Print the
|
Line 196 Print the
|
and |
and |
.Em sudoers |
.Em sudoers |
grammar versions and exit. |
grammar versions and exit. |
|
.It Fl x Ar file , Fl -export Ns = Ns Ar file |
|
Export |
|
.Em sudoers |
|
in JSON format and write it to |
|
.Ar file . |
|
If |
|
.Ar file |
|
is |
|
.Ql - , |
|
the exported |
|
.Em sudoers |
|
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 |
|
.Em sudoers |
|
format. |
|
The various values have explicit types which removes much of the |
|
ambiguity of the |
|
.Em sudoers |
|
format. |
.El |
.El |
.Sh ENVIRONMENT |
.Sh ENVIRONMENT |
The following environment variables may be consulted depending on |
The following environment variables may be consulted depending on |