Copyright (c) 1996,1998-2005, 2007-2010
Todd C. Miller <Todd.Miller@courtesan.com>

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.
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Sponsored in part by the Defense Advanced Research Projects
Agency (DARPA) and Air Force Research Laboratory, Air Force
Materiel Command, USAF, under agreement number F39502-99-1-0512.

Automatically generated by Pod::Man 2.22 (Pod::Simple 3.07)

Standard preamble:
========================================================================
..
..
.. Set up some character translations and predefined strings. \*(-- will
give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
double quote, and \*(R" will give a right double quote. \*(C+ will
give a nicer C++. Capital omega is used to do unbreakable dashes and
therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
nothing in troff, for use with C<>.
.tr \(*W- . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` . ds C' 'br\} . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\}
Escape single quotes in literal strings from groff's Unicode transform.

If the F register is turned on, we'll generate index entries on stderr for
titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
entries marked with X<> in POD. Of course, you'll have to process the
output yourself in some meaningful fashion.
. de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} . de IX .. .\}
Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] .\} . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents . \" corrections for vroff . \" for low resolution devices (crt and lpr) \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} ========================================================================

Title "VISUDO 8"
VISUDO 8 "July 14, 2010" "1.7.4" "MAINTENANCE COMMANDS"
For nroff, turn off justification. Always turn off hyphenation; it makes
way too many mistakes in technical documents.
"NAME"
visudo - edit the sudoers file
"SYNOPSIS"
Header "SYNOPSIS" \fBvisudo [-c] [-q] [-s] [-V] [-f sudoers]
"DESCRIPTION"
Header "DESCRIPTION" \fBvisudo edits the sudoers file in a safe fashion, analogous to \fIvipw\|(8). visudo locks the sudoers file against multiple simultaneous edits, provides basic sanity checks, and checks for parse errors. If the sudoers file is currently being edited you will receive a message to try again later.

There is a hard-coded list of one or more editors that visudo will use set at compile-time that may be overridden via the editor sudoers \f(CW\*(C`Default\*(C' variable. This list defaults to "/usr/bin/vi". Normally, \fBvisudo does not honor the \*(C`VISUAL\*(C' or \*(C`EDITOR\*(C' environment variables unless they contain an editor in the aforementioned editors list. However, if visudo is configured with the --with-env-editor option or the env_editor \*(C`Default\*(C' variable is set in sudoers, \fBvisudo will use any the editor defines by \*(C`VISUAL\*(C' or \*(C`EDITOR\*(C'. Note that this can be a security hole since it allows the user to execute any program they wish simply by setting \*(C`VISUAL\*(C' or \*(C`EDITOR\*(C'.

\fBvisudo parses the sudoers file after the edit and will not save the changes if there is a syntax error. Upon finding an error, visudo will print a message stating the line number(s) where the error occurred and the user will receive the \*(L"What now?\*(R" prompt. At this point the user may enter \*(L"e\*(R" to re-edit the sudoers file, \*(L"x\*(R" to exit without saving the changes, or \*(L"Q\*(R" to quit and save changes. The \*(L"Q\*(R" option should be used with extreme care because if visudo believes there to be a parse error, so will sudo and no one will be able to sudo again until the error is fixed. If \*(L"e\*(R" is typed to edit the sudoers file after a parse error has been detected, the cursor will be placed on the line where the error occurred (if the editor supports this feature).

"OPTIONS"
Header "OPTIONS" \fBvisudo accepts the following command line options:
"-c" 12
Item "-c" Enable check-only mode. The existing sudoers file will be checked for syntax and a message will be printed to the standard output detailing the status of sudoers. If the syntax check completes successfully, visudo will exit with a value of 0. If a syntax error is encountered, \fBvisudo will exit with a value of 1.
"-f sudoers" 12
Item "-f sudoers" Specify and alternate sudoers file location. With this option \fBvisudo will edit (or check) the sudoers file of your choice, instead of the default, /etc/sudoers. The lock file used is the specified sudoers file with \*(L".tmp\*(R" appended to it.
"-q" 12
Item "-q" Enable quiet mode. In this mode details about syntax errors are not printed. This option is only useful when combined with the -c option.
"-s" 12
Item "-s" Enable strict checking of the sudoers file. If an alias is used before it is defined, visudo will consider this a parse error. Note that it is not possible to differentiate between an alias and a host name or user name that consists solely of uppercase letters, digits, and the underscore ('_') character.
"-V" 12
Item "-V" The -V (version) option causes visudo to print its version number and exit.
"ENVIRONMENT"
Header "ENVIRONMENT" The following environment variables may be consulted depending on the value of the editor and env_editor sudoers variables: Item "VISUAL" Invoked by visudo as the editor to use Item "EDITOR" Used by visudo if \s-1VISUAL\s0 is not set
"FILES"
Header "FILES" Item "/etc/sudoers" List of who can run what Item "/etc/sudoers.tmp" Lock file for visudo
"DIAGNOSTICS"
Header "DIAGNOSTICS"
"sudoers file busy, try again later." 4
Item "sudoers file busy, try again later." Someone else is currently editing the sudoers file. Item "/etc/sudoers.tmp: Permission denied" You didn't run visudo as root.
"Can't find you in the passwd database" 4
Item "Can't find you in the passwd database" Your userid does not appear in the system passwd file.
"Warning: {User,Runas,Host,Cmnd}_Alias referenced but not defined" 4
Item "Warning: {User,Runas,Host,Cmnd}_Alias referenced but not defined" Either you are trying to use an undeclare {User,Runas,Host,Cmnd}_Alias or you have a user or host name listed that consists solely of uppercase letters, digits, and the underscore ('_') character. In the latter case, you can ignore the warnings (sudo will not complain). In -s (strict) mode these are errors, not warnings.
"Warning: unused {User,Runas,Host,Cmnd}_Alias" 4
Item "Warning: unused {User,Runas,Host,Cmnd}_Alias" The specified {User,Runas,Host,Cmnd}_Alias was defined but never used. You may wish to comment out or remove the unused alias. In \fB-s (strict) mode this is an error, not a warning.
"SEE ALSO"
Header "SEE ALSO" \fIvi\|(1), sudoers\|(5), sudo\|(8), vipw\|(8)
"AUTHOR"
Header "AUTHOR" Many people have worked on sudo over the years; this version of \fBvisudo was written by:

.Vb 1 Todd Miller .Ve

See the \s-1HISTORY\s0 file in the sudo distribution or visit http://www.sudo.ws/sudo/history.html for more details.

"CAVEATS"
Header "CAVEATS" There is no easy way to prevent a user from gaining a root shell if the editor used by visudo allows shell escapes.
"BUGS"
Header "BUGS" If you feel you have found a bug in visudo, please submit a bug report at http://www.sudo.ws/sudo/bugs/
"SUPPORT"
Header "SUPPORT" Limited free support is available via the sudo-users mailing list, see http://www.sudo.ws/mailman/listinfo/sudo-users to subscribe or search the archives.
"DISCLAIMER"
Header "DISCLAIMER" \fBvisudo is provided ``\s-1AS\s0 \s-1IS\s0'' and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. See the \s-1LICENSE\s0 file distributed with sudo or http://www.sudo.ws/sudo/license.html for complete details.