mikshaw
Group: Members
Posts: 4856
Joined: July 2004 |
|
Posted: Sep. 23 2006,11:21 |
|
Yeah, the EDITOR variable was just a guess. I've never used visudo in DSL, and my other systems were already set up to use it properly.
Anyway, this is from the visudo man page:
Quote | 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. |
I have no idea how visudo was compiled for Knoppix/DSL, but my guess is support for the EDITOR variable was not enabled. In any case, visudo obviously is looking for an application called "/usr/bin/editor", so making the symlink i mentioned in the first post should work: ln -s vi /usr/bin/editor
-------------- http://www.tldp.org/LDP/intro-linux/html/index.html
|