version 1.3, 2000/03/27 03:44:39 |
version 1.4, 2001/09/17 23:49:21 |
|
|
''' $RCSfile$$Revision$$Date$ |
''' $RCSfile$$Revision$$Date$ |
''' |
''' |
''' $Log$ |
''' $Log$ |
|
''' Revision 1.4 2001/09/17 23:49:21 pjanzen |
|
''' Typo and grammar fixes, one from PR/2058 (Dennis Schwarz); ok millert@ |
|
''' |
''' Revision 1.3 2000/03/27 03:44:39 millert |
''' Revision 1.3 2000/03/27 03:44:39 millert |
''' sudo 1.6.3; see http://www.courtesan.com/sudo/current.html for a list |
''' sudo 1.6.3; see http://www.courtesan.com/sudo/current.html for a list |
''' of changes. |
''' of changes. |
|
|
.\" Ip Item |
.\" Ip Item |
.\" X<> Xref (embedded |
.\" X<> Xref (embedded |
.\" Of course, you have to process the output yourself |
.\" Of course, you have to process the output yourself |
.\" in some meaninful fashion. |
.\" in some meaningful fashion. |
.if \nF \{ |
.if \nF \{ |
.de IX |
.de IX |
.tm Index:\\$1\t\\n%\t"\\$2" |
.tm Index:\\$1\t\\n%\t"\\$2" |
|
|
for parse errors. If the \fIsudoers\fR file is currently being |
for parse errors. If the \fIsudoers\fR file is currently being |
edited you will receive a message to try again later. In the |
edited you will receive a message to try again later. In the |
default configuration, the \fIvi\fR\|(1) editor is used, but there is |
default configuration, the \fIvi\fR\|(1) editor is used, but there is |
a compile time option to allow use of whatever editor the |
a compile-time option to allow use of whatever editor the |
environment variables \f(CWEDITOR\fR or \f(CWVISUAL\fR are set to. |
environment variables \f(CWEDITOR\fR or \f(CWVISUAL\fR are set to. |
.PP |
.PP |
\fBvisudo\fR parses the \fIsudoers\fR file after the edit and will |
\fBvisudo\fR parses the \fIsudoers\fR file after the edit and will |
not save the changes if there is a syntax error. Upon finding |
not save the changes if there is a syntax error. Upon finding |
an error, a message will be printed stating the line \fInumber\fR\|(s) |
an error, \fBvisudo\fR will print a message stating the line \fInumber\fR\|(s) |
that the error occurred on and the user will receive the |
that the error occurred on and the user will receive the |
\*(L"What now?\*(R" prompt. At this point the user may enter \*(L"e\*(R" |
\*(L"What now?\*(R" prompt. At this point the user may enter \*(L"e\*(R" |
to re-edit the \fIsudoers\fR file, enter \*(L"x\*(R" to exit without |
to re-edit the \fIsudoers\fR file, \*(L"x\*(R" to exit without |
saving the changes, or \*(L"Q\*(R" to quit and save changes. The |
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 \fBvisudo\fR |
\*(L"Q\*(R" option should be used with extreme care because if \fBvisudo\fR |
believes there to be a parse error, so will \fBsudo\fR and no one |
believes there to be a parse error, so will \fBsudo\fR and no one |
will be able to execute \fBsudo\fR again until the error is fixed. |
will be able to use \fBsudo\fR again until the error is fixed. |
Any other command at this prompt will print a short help message. |
Any other command at this prompt will print a short help message. |
When editing the \fIsudoers\fR file after a parse error has been |
If \*(L"e\*(R" is typed to edit the \fIsudoers\fR file after a parse error |
detected the cursor will be placed on the line where the error |
has been detected, the cursor will be placed on the line where the error |
occurred (if the editor supports this feature). |
occurred (if the editor supports this feature). |
.SH "OPTIONS" |
.SH "OPTIONS" |
\fBvisudo\fR accepts the following command line option: |
\fBvisudo\fR accepts the following command line options: |
.Ip "-s" 4 |
.Ip "-s" 4 |
Enable \fBstrict\fR checking of the \fIsudoers\fR file. If an alias is |
Enable \fBstrict\fR checking of the \fIsudoers\fR file. If an alias is |
used before it is defined, \fBvisudo\fR will consider this a parse |
used before it is defined, \fBvisudo\fR will consider this a parse |
|
|
alias and a hostname or username that consists solely of upper case |
alias and a hostname or username that consists solely of upper case |
letters, digits, and the underscore ('_') character. |
letters, digits, and the underscore ('_') character. |
.Ip "-V" 4 |
.Ip "-V" 4 |
The \f(CW-V\fR (version) option causes \fBvisudo\fR to print the version number |
The \f(CW-V\fR (version) option causes \fBvisudo\fR to print its version number |
and exit. |
and exit. |
.SH "ERRORS" |
.SH "ERRORS" |
.Ip "sudoers file busy, try again later." 4 |
.Ip "sudoers file busy, try again later." 4 |
|
|
consists solely of upper case letters, digits, and the |
consists solely of upper case letters, digits, and the |
underscore ('_') character. If the latter, you can ignore |
underscore ('_') character. If the latter, you can ignore |
the warnings (\fBsudo\fR will not complain). In \fB\-s\fR (strict) |
the warnings (\fBsudo\fR will not complain). In \fB\-s\fR (strict) |
mode these are errors not warnings. |
mode these are errors, not warnings. |
.SH "ENVIRONMENT" |
.SH "ENVIRONMENT" |
The following environment variables are used only if \fBvisudo\fR |
The following environment variables are used only if \fBvisudo\fR |
was configured with the \fI--with-env-editor\fR option: |
was configured with the \fI--with-env-editor\fR option: |
.PP |
.PP |
.Vb 2 |
.Vb 2 |
\& EDITOR Used by visudo as the editor to use |
\& EDITOR Invoked by visudo as the editor |
\& VISUAL Used by visudo if EDITOR is not set |
\& VISUAL Invoked by visudo if EDITOR is not set |
.Ve |
.Ve |
.SH "FILES" |
.SH "FILES" |
.PP |
.PP |
|
|
\& /etc/sudoers.tmp Lock file for visudo |
\& /etc/sudoers.tmp Lock file for visudo |
.Ve |
.Ve |
.SH "AUTHOR" |
.SH "AUTHOR" |
Many people have worked on \fIsudo\fR over the years, this version of |
Many people have worked on \fIsudo\fR over the years. This version of |
\fBvisudo\fR was written by: |
\fBvisudo\fR was written by: |
.PP |
.PP |
.Vb 1 |
.Vb 1 |