sudo visudo

Category: Self-Hosting

sudo visudo

Safely edit the sudoers file which controls who can run which commands with sudo

Opens the sudoers file in a protected editor that validates syntax before saving. Never edit /etc/sudoers directly with nano — a syntax error can lock out all sudo access.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.