Bugzilla – Bug 245
visudo fails on Solaris 10 (both Sparc and x86)
Last modified: 2007-07-20 07:28:15 MDT
Using Solaris 10, and Sun's Studio 11 compilers, visudo fails to be happy with the return code from vi (either /usr/bin/vi, or /usr/ucb/vi - both give the exact same results) Using visudo as follows: root@db3-Tue 5:55pm-1241: visudo (edits made in vi - one test case is adding a single blank line) (save and quit in vi - :w, then :q) visudo: editor (/usr/ucb/vi) failed, /etc/sudoers unchanged This happens every time on Solaris 10 (both sparc and x86). I can create accounts on Solaris 10 machines that exhibit this behavior if you would find it helpful.
Please try the visudo included in the 1.6.9 beta and see if the problem persists. See http://www.sudo.ws/sudo/beta.html for a link to the beta version.
I believe this is fixed in 1.6.9. If not, please re-open.