[sudo-users] Syntax of Cmnd_List
Aaron Spangler
aaron777 at gmail.com
Fri May 13 19:02:45 EDT 2005
Try this?
Cmnd_List = /bin/mv, /bin/cp
-Aaron
On 5/12/05, Jonathan Villa <jvilla at innovativesource.net> wrote:
>
> I'm trying to give sudo access to a shell script that does only 2 things...
>
> cp and mv
>
> I've tried looking into using the following from the sudoers man
> ******************************************
> Cmnd_List ::= Cmnd │
> Cmnd ',' Cmnd_List
>
> commandname ::= filename │
> filename args │
> filename '""'
>
> Cmnd ::= '!'* commandname │
> '!'* directory │
> '!'* Cmnd_Alias
> ******************************************
>
> I'm not quite getting it...
>
> Do I list the command and give it an alias then list it?
>
> e.g.?
>
> Cmnd_List = cpf, mvf
>
> cpf = /bin/cp /home/location/* /home/location2/
> mvf = /bin/mv /home/location/* /home/location3/
>
> or have I totally misunderstood something?
>
> --
> Jonathan
>
> ____________________________________________________________
> 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