However, if visudo is configured with the --with-env-editor option or the env_editor Default variable is set in sudoers, visudo will use any the editor defines by VISUAL or EDITOR. Note that this can be a security hole since it allows the user to execute any program they wish simply by setting VISUAL or EDITOR.

NAME visudo - edit the sudoers file SYNOPSIS visudo [-c] [-q] [-s] [-V] [-f sudoers] DESCRIPTION visudo edits the sudoers file in a safe fashion, analogous to vipw(8).visudo locks the sudoers file against multiple simultaneous edits, provides basic sanity checks, and checks for parse errors. If the sudoers file is currently being edited you will receive a message to try again later. Ubuntu Manpage: visudo — edit the sudoers file Provided by: sudo-ldap_1.8.9p5-1ubuntu1_amd64 NAME visudo — edit the sudoers file SYNOPSIS visudo [-chqsV] [-f sudoers] [-x file] DESCRIPTION visudo edits the sudoers file in a safe fashion, analogous to vipw(8). visudo locks the sudoers file against multiple simultaneous edits, provides basic sanity checks, and checks for parse errors. If the sudoers file is currently being edited you will How to Add User to Sudoers in Debian | Linuxize Nov 04, 2019

Why and How to Edit Your Sudoers File in Linux - Make Tech

How to add a user to the sudoers list | Pen Drive Linux

How to add Users to Sudoers File in Ubuntu - Analytics

May 04, 2011 Exit/save edit to sudoers file? Putty SSH - Stack Overflow Sorry but Ctrl+D does not exit visudo, it exits the shell. I need to exit and save visudo before exiting the shell. Yes I could read the entire linux documentation or all the books from O'Reilly but that isn't why I asked a question here. – Gonzalez Dec 31 '12 at 11:46 Take Control of your Linux | sudoers file: How to with