version 1.5, 2008/07/31 16:44:04 |
version 1.6, 2008/11/14 11:58:08 |
|
|
Copyright (c) 1996,1998-2005, 2007 Todd C. Miller <Todd.Miller@courtesan.com> |
Copyright (c) 1996,1998-2005, 2007-2008 |
|
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 |
purpose with or without fee is hereby granted, provided that the above |
purpose with or without fee is hereby granted, provided that the above |
|
|
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. |
|
|
$Sudo: visudo.pod,v 1.38.2.10 2008/02/19 15:45:12 millert Exp $ |
$Sudo: visudo.pod,v 1.54 2008/11/09 14:13:13 millert Exp $ |
=pod |
=pod |
|
|
=head1 NAME |
=head1 NAME |
|
|
|
|
B<visudo> accepts the following command line options: |
B<visudo> accepts the following command line options: |
|
|
=over 4 |
=over 12 |
|
|
=item -c |
=item -c |
|
|
|
|
exit with a value of 0. If a syntax error is encountered, |
exit with a value of 0. If a syntax error is encountered, |
B<visudo> will exit with a value of 1. |
B<visudo> will exit with a value of 1. |
|
|
=item -f |
=item -f I<sudoers> |
|
|
Specify and alternate I<sudoers> file location. With this option |
Specify and alternate I<sudoers> file location. With this option |
B<visudo> will edit (or check) the I<sudoers> file of your choice, |
B<visudo> will edit (or check) the I<sudoers> file of your choice, |
|
|
|
|
=head1 ENVIRONMENT |
=head1 ENVIRONMENT |
|
|
The following environment variables are used only if B<visudo> |
The following environment variables may be consulted depending on |
was configured with the I<--with-env-editor> option: |
the value of the I<editor> and I<env_editor> I<sudoers> variables: |
|
|
=over 16 |
=over 16 |
|
|
|
|
|
|
Your userid does not appear in the system passwd file. |
Your userid does not appear in the system passwd file. |
|
|
=item Warning: undeclared Alias referenced near ... |
=item Warning: {User,Runas,Host,Cmnd}_Alias referenced but not defined |
|
|
Either you are using a {User,Runas,Host,Cmnd}_Alias before |
Either you are trying to use an undeclare {User,Runas,Host,Cmnd}_Alias |
defining it or you have a user or hostname listed that |
or you have a user or hostname listed that consists solely of |
consists solely of uppercase letters, digits, and the |
uppercase letters, digits, and the underscore ('_') character. In |
underscore ('_') character. If the latter, you can ignore |
the latter case, you can ignore the warnings (B<sudo> will not |
the warnings (B<sudo> will not complain). In B<-s> (strict) |
complain). In B<-s> (strict) mode these are errors, not warnings. |
mode these are errors, not warnings. |
|
|
|
=item Warning: runas_default set after old value is in use ... |
=item Warning: unused {User,Runas,Host,Cmnd}_Alias |
|
|
You have a I<runas_default> Defaults setting listed in the I<sudoers> |
The specified {User,Runas,Host,Cmnd}_Alias was defined but never |
file after its value has already been used. This means that entries |
used. You may wish to comment out or remove the unused alias. In |
prior to the I<runas_default> setting will match based on the default |
B<-s> (strict) mode this is an error, not a warning. |
value of I<runas_default> (C<@runas_default@>) whereas entries |
|
B<after> the I<runas_default> setting will match based on the new |
|
value. This is usually unintentional and in most cases the |
|
<runas_default> setting should be placed before any C<Runas_Alias> |
|
or User specifications. In B<-s> (strict) mode this is an error, |
|
not a warning. |
|
|
|
=back |
=back |
|
|