can I make it use another editor?
A) Your best bet is to run configure with the --with-env-editor switch.
This will make visudo use the editor specified by the user's
- EDITOR environmental variable. Alternately, you can run configure
+ EDITOR environment variable. Alternately, you can run configure
with the --with-editor=path_to_your_editor.
Q) Sudo appears to be removing some variables from my environment, why?
-A) Sudo removes the following "dangerous" environmental variables
+A) Sudo removes the following "dangerous" environment variables
to guard against shared library spoofing, shell voodoo, and
kerberos server spoofing.
IFS
=item -s
The C<-s> (I<shell>) option runs the shell specified by the I<SHELL>
-environmental variable if it is set or the shell as specified
+environment variable if it is set or the shell as specified
in passwd(5).
=item -H
-The C<-H> (I<HOME>) option sets the I<HOME> environmental variable
+The C<-H> (I<HOME>) option sets the I<HOME> environment variable
to the homedir of the target user (root by default) as specified
in passwd(5).
Variables that control how dynamic loading and binding is
done can be used to subvert the program that B<sudo> runs.
To combat this the C<LD_*>, C<SHLIB_PATH> (HP-UX only),
-C<LIBPATH> (AIX only), and C<_RLD_*> environmental variables are
+C<LIBPATH> (AIX only), and C<_RLD_*> environment variables are
removed from the environment passed on to all commands executed.
B<sudo> will also remove the C<IFS>, C<ENV>, C<BASH_ENV>
and C<KRB_CONF> variables as they too can pose a threat.
To prevent command spoofing, B<sudo> checks "." and "" (both
denoting current directory) last when searching for a command
in the user's PATH (if one or both are in the PATH).
-Note, however, that the actual PATH environmental variable
+Note, however, that the actual PATH environment variable
is I<not> modified and is passed unchanged to the program that
B<sudo> executes.
edited you will receive a message to try again later. In the
default configuration, the vi(1) editor is used, but there is
a compile time option to allow use of whatever editor the
-environmental variables C<EDITOR> or C<VISUAL> are set to.
+environment variables C<EDITOR> or C<VISUAL> are set to.
B<visudo> parses the I<sudoers> file after the edit and will
not save the changes if there is a syntax error. Upon finding