[sudo-users] Problem with shell wildcard
Matthew Hannigan
mlh at zip.com.au
Wed Mar 7 02:06:24 EST 2007
On Wed, Mar 07, 2007 at 03:34:27PM +1000, Paul Stepowski wrote:
>
> A fix might be to include a feature in sudo (disabled by default) to expand
> wildcards in commands. Most shells expend "*" in the same way, so you wouldn't
You can put something like
sh -c 'ls /var/log/*'
as the command in sudoers.
It's a little fiddly to get right because sudo checks the string exactly.
att
More information about the sudo-users
mailing list