Another problem with long strings in Sudo

Tim Olson Tim at unionsemiconductor.com
Tue Feb 27 17:56:39 EST 2001


Once again I ran into a problem with setting up sudo to do a function.
Last time I couldn't get it to accept a command with double pipes,
like...

/bin/command argument | cat argument | > filename.txt

This time I can't get it to accept this command...


/usr/sbin/makemap hash /etc/mail/access < /etc/mail/access

I can enter it with visudo and when I do "sudo -l" it shows
up as an available command with the whole line as typed, but
when I go to run it I get "can't create access.db permission denied".

Is there a problem using sudo with multiple modifiers like this...
one command with an argument then a full filename path and then
the "<" symbol and a filename?

Can anybody give me any tips?  I've even tried putting
'/etc/mail/access < /etc/mail/access' in quotes.

Tim
-- 
Tim Olson
mailto:tolson at unionsemiconductor.com
Phone: (715) 720-0252  x2010



More information about the sudo-users mailing list