[ale] Redirection using sudo...?

KingBahamut gwosbahamut at gmail.com
Tue Jun 13 15:19:20 EDT 2006


odd.....whats different.....methinks...


On 6/13/06, Pat Regan <thehead at patshead.com> wrote:
>
> Michael B. Trausch wrote:
> > Nope.  The following were tried, and failed.  :-/
> >
> > fd0man at fd0man-laptop:~$ sudo -i (echo 1 > /file)
> > bash: syntax error near unexpected token `('
> > fd0man at fd0man-laptop:~$ sudo -i echo 1 > /file
> > bash: /file: Permission denied
> > fd0man at fd0man-laptop:~$ sudo sh -c { echo 1 > /file }
> > bash: /file: Permission denied
> > fd0man at fd0man-laptop:~$
> >
> This works for me:
>
> sudo sh -c 'echo 1 > /root/file'
>
>
> Pat
>
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>
>
>


-- 
KingBahamut
Founder of the GWoS
All Around Geek
"I could tell you the probability, but you wouldnt like it."
-------------- next part --------------
An HTML attachment was scrubbed...




More information about the Ale mailing list