Restricting cp/mv in a folder
Ritesh Raj Joshi
ritesh at mos.com.np
Tue Aug 1 06:14:32 EDT 2000
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