[ale] Redirection using sudo...?

KingBahamut gwosbahamut at gmail.com
Tue Jun 13 13:38:36 EDT 2006


Well hmmmmm...

Im pretty sure that sudo doesnt support redirection, but Id have thought by
using sudo -i or sudo sh -c you could go around that.

On 6/13/06, Michael B. Trausch <fd0man at gmail.com> wrote:
>
> On Tue, June 13 2006 13:24, KingBahamut wrote:
> >
> > Stepping out on a limb but
> >
> > could you not do a
> >
> > sudo sh -c {blah blah blah}?
> >
> > or use
> >
> > sudo -i (setting everything to root?)
> >
>
> 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:~$
>
>
>
> _______________________________________________
> 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