visudo

Visudo edits the sudoers file, which defines the users and groups with administrator rights

Options

NameDescription
--check, -cChecking existing sudoers file for syntax errors
--file, -f <New sudoers location>Set an alternative sudoers file location
--help, -hDisplay a short help message
--quiet, -qEnable quiet mode (syntax error not printed)
--strict, -sEnable strict checking of the sudoers file
--version, -VDisplay version and exit
--export, -x <Output file name>Export JSON and write it to output_file
--perms, -PEnforce default mode for the sudoers file
--owner, -OEnforce the default ownership for the sudoers file