All apps/visudo

visudo

visudo

Edit the sudoers file safely.

Runs as visudo|macOS, Linux, Windows

Command form

ai-draft · 1 task · 4 fields

Syntax-check a sudoers file, or edit one with locking and validation. Needs root to edit the system file.

Opens the form; the finished command lands at your prompt, unrun
otty gui visudo
Check or edit sudoersExample values, fixed in this page — nothing here reaches a terminal
Basic
Check only set by task
--check
Sudoers file
file
Strict checking
--strict
Quiet
--quiet
TasksEach one presets the form for one job
Check syntax
checkfilestrictquiet
ParametersOnly these flags are editable in the form
Check only
Check the file for syntax errors without editing.
boolean
--check-c
Sudoers file
Alternative location instead of the system sudoers file.
path
--file-f
Strict checking
boolean
--strict-s
Quiet
boolean
--quiet-q
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed visudo against its version. A form that does not match your version is not offered.