[ale] Redirection using sudo...?

Michael B. Trausch fd0man at gmail.com
Tue Jun 13 13:36:36 EDT 2006


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:~$

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available




More information about the Ale mailing list