sudo configuration help

Kihara Muriithi william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Jun 5 15:19:31 UTC 2007


> > 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.
This is what I experienced. Then I remembered a warning about this
somewhere in http://www.amazon.com/UNIX-System-Administration-Handbook-3rd/dp/0130206016

>
> It would be better to write a short program that copied new
> contents over top of the specific file and run that with sudo.
> I'd then actually use a wrapper script that made a copy of the
> original, let the user edit it, provided some validation and
> asked for confirmation, etc., and then ran the sudo program
> to install it.
A do agree, and someone has to have implemented it somehow


Regards,
William
>
> --
> --
> 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
>
--
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