Using visudo

Using visudo allows for updates to sudoers file on your system to be made in an easy and safe way.

Essentially, visudo is a wrapper script around vi editor (or any other editor of your preference), which  locks the sudoers file against multiple simultaneous edits, checks for the correct sudoers file syntax, and provides other sanity checks.

Please consult the visudo tutorial post for further information.

See also: