O'Reilly logo

Mac OS X Tiger in a Nutshell by Jason McIntosh, Chuck Toporek, Chris Stone, Andy Lester

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

visudo

Synopsis

visudo [options]

Edits sudo's control file sudoers in the vi editor. Using visudo instead of editing directly prevents two users from performing edits at once. Also, visudo will not save edits to sudoers if they are not syntactically correct.

-c

Syntax check on the file's contents, without editing. Exits with 0 if it's valid, or 1 if not.

-f filename

Specifies an alternate location for the sudoers file.

-q

Quiet mode. When used with -c, do not print errors.

-s

Strict checking. An alias used before it is defined is an error.

-V

Print the version number.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required