visudo, welche Editoren sind erlaubt
Hallo,
es gibt anscheinend eine einkompilierte List von Editoren, die visudo
erlaubt. Setzt man die Varaiablen VISUAL, oder EDITOR, so nimmt visudo
den dort angegeben Editor NUR, wenn er in der einkompilierten Liste
auch entalten ist.
,----[ man visudo ]
| There is a hard-coded list of editors that visudo will use set at
| compile-time that may be overridden via the editor sudoers Default
| variable. This list defaults to the path to vi(1) on your system, as
| determined by the configure script. Normally, visudo does not honor
| the EDITOR or VISUAL environment variables unless they contain an
| editor in the aforementioned editors list. However, if visudo is
| configured with the --with-enveditor flag or the enveditor Default
| variable is set in sudoers, visudo will use any the editor defines by
| EDITOR or VISUAL. Note that this can be a security hole since it
| allows the user to execute any program they wish simply by setting
| EDITOR or VISUAL.
`----
Da ich unter debian üblicherweise Pakete benutze, weiss ich also
nicht, welche Editor liste einkompiliert ist, oder ob die option
--with-enveditor beim kompilieren gesetzt wurde.
Wie ermittele ich das?
Heino
Reply to: