[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: sudo and globbing



On Mon, Feb 03, 2003 at 05:24:36AM -0800, Harry Putnam wrote:
> I didn't notice anything in man sudo to explain why globbing doesn't
> work using sudo.  At least in this instance
> 
>     sudo ls /root/inst*
>   ls: /root/inst*: No such file or directory

The correct syntax would be:
sudo sh -c "ls /root/inst*"

This is somewhat documented in the sudo man pages in the EXAMPLES
section.

-- 
Ed Wilts, Mounds View, MN, USA
mailto:ewilts ewilts org
Member #1, Red Hat Community Ambassador Program





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]