[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: VI wrapper for SUDO?



Previously Ted Cabeen wrote:
> However, thinking about it, this doesn't work.  If you're editing as root, you
> can use :e to switch to editing a SUID root file (any one you can write to
> will work), delete the entire contents, and then use :r to bring in the 
> /bin/sh executable.

But you can restrict the file to edit in your sudoers file anyway so
that trick won't work.

Wichert.

-- 
  _________________________________________________________________
 /wichert@wiggy.net         This space intentionally left occupied \
| wichert@deephackmode.org            http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |



Reply to: