sudo configuration help

John Sellens jsellens-Iv5KO+h6AVB+Y12zHexnB0EOCMrvLtNR at public.gmane.org
Tue Jun 5 15:20:43 UTC 2007


| On Tue, Jun 05, 2007 at 10:46:46AM -0400, Neil Watson wrote:
| > Untested:
| > USERS   smtp.example.org = /bin/vi /etc/exim/smtp-auth
| 
| That would run vi as root.  While editting the specified file,
| the user would be able to open and edit any other file they
| wished during the same editting session.

And don't forget about typing :shell in vi, which would give you
a root shell.

vi on freebsd seems to have a -S secure option, but vim on linux
doesn't seem to have the same thing.

John
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list