vi and sudo

Brent Fortman Brent.Fortman at
Tue Apr 23 09:03:12 EDT 2002

> "while acting in the sudo context"

You may think sudo is doing more than it is designed to do.  When you "sudo
vi" you are simply running vi as root. There is no "sudo context" once vi
begins to execute. Given that, it is a common practice amongst sudo
administrators to find other alternatives or exclude altogether the use of
vi with sudo.


-----Original Message-----
From: G Saoutine [mailto:gsaoutine at]
Sent: Monday, April 22, 2002 9:21 PM
To: sudo-users at
Subject: vi and sudo

dear list,

i am new to sudo and recently installed it on sun
solaris 2.6. when i open vi while acting in the sudo
context, vi still seems lets me execute shell commands
as root.

did i miss something in configuration? or what am i
doing wrong?


Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
sudo-users mailing list <sudo-users at>
For list information, options, or to unsubscribe, visit:

More information about the sudo-users mailing list