Wrapper script to limit use of command to a directory?
g_lams at yahoo.com
Thu Feb 20 04:17:39 EST 2003
I'm trying to limiting the use of 4 commands in one
directory, let's say /usr/local/dirA
I discovered yesterday that globbing doesn't work and
that I need to use pattern matching.
I've tried to use it, for instance,
-for the "chmod" command, I've written on my sudoers:
/bin/chmod .+ /usr/local/dirA/.+
and for the "cp" command:
/bin/cp .+ /usr/local/dirA/.+
I ve tried also with .*, but it doesn't work (user not
allowed) even if, as far as I know, .* should match
any string, shouldn't it?
I read in this mailing list that it would be better
not to use pattern matching in sudoers, instead use
wrapper script, but I don't really know how to do it,
where to start.
Any help would be greatly appreciated
Have a nice day all
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
More information about the sudo-users