[sudo-users] Sudo with directory allows .. to be added. How do I avoid this.

Richard van den Berg richard at vdberg.org
Fri Nov 19 14:13:28 EST 2010


On 19-11-10 18:52 , Art A wrote:
> So my question is how can I allow someone to edit any file in a directory without putting every file in the sudoers. I have read the documentation and tried [!.] but it didn't work for me.  What I would settle on is a why to say any pattern without a '..' in it is valid.

Try this:

!sudoedit /var/opt/perf/*..*


I don't know exactly how to sudoedit works with ! negation, but the above works for other commands.


Regards,

Richard



More information about the sudo-users mailing list