Restricting cp/mv in a folder

Ritesh Raj Joshi ritesh at mos.com.np
Thu Aug 3 04:48:55 EDT 2000


HI all!
I would be really grateful if anyone could provide me some tips regarding
the following...
Actually this one is more important for me than the "passwd" one!
Thanks in advance ...

Rgds,

\\Ritesh

  |  r i t e s h   r a j   j o s h i
  |  system administrator
  |  MERCANTILE COMMUNICATIONS PVT. LTD
  |  www.mos.com.np 
  |  hotline:240920

On Tue, 1 Aug 2000, Ritesh Raj Joshi wrote:

> HI all!
> I am using CU Sudo version 1.5.3 and trying to restrict a group of users
> to be able to cp and mv files in a particular folder only.
> I have gone through the documentation but could not find a solution.
> I tried the following but did not click:
> --------------------
> Cmnd_Alias      COPY = /bin/cp /var/mail/[A-z]*
> Cmnd_Alias      MOVE = /bin/mv /var/mail/[A-z]*
> 
> SUPPORT		ALL=(root) COPY, MOVE
> --------------------
> And this as well:
> --------------------
> Cmnd_Alias      COPY = /bin/cp /var/mail/*
> Cmnd_Alias      MOVE = /bin/mv /var/mail/*
> 
> SUPPORT         ALL=(root) COPY, MOVE
> --------------------                   
> With these it does not let the users in the User_Alias SUPPORT cp or mv
> any files inside /var/mail.
> 
> I would really appreciate it if some "guru" could show me the way here.
> Rgds,
> 
> \\Ritesh
> 
>   |  r i t e s h   r a j   j o s h i
>   |  system administrator
>   |  MERCANTILE COMMUNICATIONS PVT. LTD
>   |  www.mos.com.np 
>   |  hotline:240920
> 
> 




More information about the sudo-users mailing list