visudo parses the sudoers file after the edit and will not save the changes if there is a syntax error. Upon finding an error, a message will be printed stating the line number (s) that the error occurred on and the user will receive the ``What now?'' prompt. At this point the user may enter ``e'' to re-edit the sudoers file, enter ``x'' to exit without saving the changes, or ``q'' to quit and save changes. The ``q'' option should be used with extreme care because if visudo believes there to be a parse error, so will sudo and no one will be able to execute sudo again until the error is fixed. Any other command at this prompt will print a short help message. When editing the sudoers file after a parse error has been detected the cursor will be placed on the line where the error occurred (if the editor supports this feature).
/etc/sudoers file of authorized users.
/etc/stmp lock file for visudo.
EDITOR Used by visudo as the editor to use.
VISUAL Used by visudo if EDITOR is not set.
Todd Miller <Todd.Miller@courtesan.com>
See the HISTORY file in the sudo distribution for more details.
Please send all bugs, comments, and changes to sudo-bugs@courtesan.com.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
There is no easy way to prevent a user from gaining a root shell if the editor used by visudo allows shell escapes.