[sudo-users] someuser ALL=/usr/bin/sudoedit /some/file

Matthew Hannigan mlh at zip.com.au
Mon Dec 16 05:19:48 MST 2013


Han,
You don't put the path to sudoedit; you just put use the magic string "sudoedit"

So try this

    someuser ALL=  sudoedit /some/file

It's a bit subtle.
There's only one example in the sudoers man page for centos 6.5, and
that is part of a long string providing Cmnd_Alias usage as well.

Regards,
Matt


On Mon, Dec 16, 2013 at 8:52 PM, Han Boetes <hboetes at gmail.com> wrote:
> Hi all,
>
> To use the rule mentioned in the topic I have to type:
>
> sudo sudoedit /some/file
>
> OK, that works. But then some of the benefits of using sudoedit are lost.
>
> What do I have to put in my sudoers file to make
>
> sudoedit /some/file
>
> for someuser work?
>
>
>
> # Han
> --
> ____________________________________________________________
> 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



-- 
m a t t h e w   l i n u s   h a n n i g a n


More information about the sudo-users mailing list