that exists. The default is the path to vi on your system.
Sudoers option: editor
- --with-env-editor
- Makes visudo consult the SUDO_EDITOR, VISUAL and EDITOR environment
- variables before falling back on the default editor list (as specified
- by --with-editor). Note that visudo is typically run as root so this
- option may allow a user with visudo privileges to run arbitrary
- commands as root without logging. An alternative is to use a
- colon-separated list of "safe" editors with the --with-editor option.
- visudo will then only use the SUDO_EDITOR, VISUAL or EDITOR variables
- if they match a value specified via --with-editor.
+ --with-env-editor=no, --without-env-editor
+ By default, visudo will consult the SUDO_EDITOR, VISUAL and EDITOR
+ environment variables before falling back on the default editor list
+ (as specified by --with-editor). visudo is typically run as root so
+ this option may allow a user with visudo privileges to run arbitrary
+ commands as root without logging. Some sites may with to disable this
+ and use a colon-separated list of "safe" editors with the --with-editor
+ option. visudo will then only use the SUDO_EDITOR, VISUAL or EDITOR
+ variables if they match a value specified via --with-editor.
Sudoers option: env_editor
--with-exempt=GROUP
SUDO_EDITOR, VISUAL and/or EDITOR environment variables
must be present in the _\be_\bn_\bv_\b__\bk_\be_\be_\bp list for the _\be_\bn_\bv_\b__\be_\bd_\bi_\bt_\bo_\br
flag to function when v\bvi\bis\bsu\bud\bdo\bo is invoked via s\bsu\bud\bdo\bo. This
- flag is _\bo_\bf_\bf by default.
+ flag is _\bo_\bn by default.
env_reset If set, s\bsu\bud\bdo\bo will run the command in a minimal
environment containing the TERM, PATH, HOME, MAIL,
enabled, the SUDO_EDITOR, VISUAL and/or EDITOR environment
variables must be present in the _\be_\bn_\bv_\b__\bk_\be_\be_\bp list for the
_\be_\bn_\bv_\b__\be_\bd_\bi_\bt_\bo_\br flag to function when v\bvi\bis\bsu\bud\bdo\bo is invoked via s\bsu\bud\bdo\bo.
- The default value is _\bo_\bf_\bf, which can be set at compile time via
+ The default value is _\bo_\bn, which can be set at compile time via
the --with-env-editor configure option.
The options are as follows: