How-To Prevent command execution in vi - SUDO

Todd C. Miller Todd.Miller at
Tue Mar 16 13:48:11 EST 2004

Some versions of vi have a "safe" mode that doesn't allow shell
escapes and the like (-S flag for nvi).

Alternately, you can use the noexec program:

This functionality will be in the next version of sudo (and is
already present in the cvs version).

 - todd

More information about the sudo-workers mailing list