[sudo-users] Limiting Editing Power

Michael Potter pottmi at gmail.com
Wed Oct 18 15:09:46 EDT 2006


add this rule to you sudoers file:
mruser webserver=(apache)sudoedit /etc/httpd.conf

then tell mruser to do this:
sudo -e -u apache /etc/httpd.conf

On 10/18/06, Mathew Brown <mathewbrown at fastmail.fm> wrote:
>
> Hi,
>   I currently run into a scenario where I want to allow a user to edit a
>   file owned by another user but ONLY that file.  If I specify something
>   like /usr/bin/vim /etc/httpd.conf, vim is launched.  However, the
>   user, using vim, can then edit any files owned by the owner or
>   httpd.conf.  Is there any solution to this issue?  Thanks for your
>   help.
> --
>   Mathew Brown
>   mathewbrown at fastmail.fm
>
> --
> http://www.fastmail.fm - I mean, what is it about a decent email service?
>
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
>



More information about the sudo-users mailing list