Originally Posted by JohnGraham
. . . Don't edit the sudoers file by hand though - use the `visudo' command.
Lookup `man sudo' and `man visudo'.
You can, in fact, use any editor you want to use to edit the sudoers
file. The advantage of visudo
is that it validates your syntax before saving the file, but - for systems with only a few users (e.g., family/home systems) - making the changes and testing them is not very burdensome.
Note that, if you're trying to maintain a secure system, you can specify in the sudoers
commands that a user may execute as "root."