]> granicus.if.org Git - sudo/commitdiff
Make env_editor the default.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Thu, 20 Jun 2019 17:51:47 +0000 (11:51 -0600)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Thu, 20 Jun 2019 17:51:47 +0000 (11:51 -0600)
It is already the default in the package script.

INSTALL
configure.ac
doc/sudoers.cat
doc/visudo.cat

diff --git a/INSTALL b/INSTALL
index cf3b45201a4d697e6609fcace3f605194ad1ac2a..ca9b0ecbd35b6c1965c2e1ba75040a434bfad8c2 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -675,15 +675,15 @@ Options that set runtime-changeable default values:
        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
index 9a5ee263c58d5b64ee1332548e16bc291782a1dd..b913e2f0a01e711c24a9fd77f2809a20925184c8 100644 (file)
@@ -182,7 +182,7 @@ mailsub="*** SECURITY information for %h ***"
 badpass_message="Sorry, try again."
 fqdn=off
 runas_default=root
-env_editor=off
+env_editor=on
 env_reset=on
 editor=vi
 passwd_tries=3
index 77c69dbfe36309a8b13935c139883d1f53f578de..9231a213a17d0896dd96b72d3e127647d3903ecf 100644 (file)
@@ -1051,7 +1051,7 @@ S\bSU\bUD\bDO\bOE\bER\bRS\bS O\bOP\bPT\bTI\bIO\bON\bNS\bS
                        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,
index 8fe04449625d46f4785e8b87fbaf73541a748792..1260ca8f9a9d765e7e9f40147f9d83140bd7b5dc 100644 (file)
@@ -50,7 +50,7 @@ D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
                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: