OS Manuals

/usr/bin/visudo

Give certain users the ability to run some commands as root

From sudo 1.9.17_p2-r12 (os), captured 2026-11-05 by running visudo --help (exit 0). permalink

visudo: /etc/sudo.conf is owned by uid 1100, should be 0
visudo - safely edit the sudoers file

usage: visudo [-chqsV] [[-f] sudoers ]

Options:
  -c, --check              check-only mode
  -f, --file=sudoers       specify sudoers file location
  -h, --help               display help message and exit
  -I, --no-includes        do not edit include files
  -q, --quiet              less verbose (quiet) syntax error messages
  -s, --strict             strict syntax checking
  -V, --version            display version information and exit
Options (9)
OptionDescriptionSource
-c, --checkEnable check-only mode.help + man
-f, --file sudoersSpecify an alternate sudoers file location, see below.help + man
-h, --helpDisplay a short help message to the standard output and exit.help + man
-I, --no-includesDisable the editing of include files unless there is a pre-existing syntax error.help + man
-q, --quietless verbose (quiet) syntax error messageshelp + man
-s, --strictEnable strict checking of the sudoers file.help + man
-V, --versionPrint the visudo and sudoers grammar versions and exit.help + man
-O, --ownerEnforce the default ownership (user and group) of the sudoers file. (in the manual page but not in --help)man
-P, --permsEnforce the default permissions (mode) of the sudoers file. (in the manual page but not in --help)man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.