- Visudo
visudo is a
unix command that edits the "sudoers" file in a safe fashion, namely by preventing multiple simultaneous edits with locks, performing sanity checks, and checking for parse errors. The "sudoers" file allows listed users access to execute to asubset of commands while having the privileges of theroot user .for more info see the web pagehttp://www.gratisoft.us/sudo/man/visudo.html
OPTIONS
visudo accepts the following command line options:
-c
Enable check-only mode. The existing sudoers file will be checked for syntax and a message will be printed to the standard output detailing the status of sudoers. If the syntax check completes successfully, visudo will exit with a value of 0. If a syntax error is encountered, visudo will exit with a value of 1.-f
Specify and alternate sudoers file location. With this option visudo will edit (or check) the sudoers file of your choice, instead of the default, /etc/sudoers. The lock file used is the specified sudoers file with ``.tmp" appended to it.-q
Enable quiet mode. In this mode details about syntax errors are not printed. This option is only useful when combined with the -c flag.-s
Enable strict checking of the sudoers file. If an alias is used before it is defined, visudo will consider this a parse error. Note that it is not possible to differentiate between an alias and a hostname or username that consists solely of uppercase letters, digits, and the underscore ('_') character.-V
The -V (version) option causes visudo to print its version number and exit.
Wikimedia Foundation. 2010.