1 |
On Thu, 23 Mar 2006 16:03:08 -0500 |
2 |
JimD wrote: |
3 |
|
4 |
> I have been using Linux for a number of years and the one "trick" I |
5 |
> have never read how to do is something like: |
6 |
> |
7 |
> sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords |
8 |
> |
9 |
> Another one I always wanted to know if it is possible is: |
10 |
> |
11 |
> sudo > /var/log/foo.log |
12 |
> |
13 |
> Both give me error message. Are either of these command possible? |
14 |
> |
15 |
> I used to always just use su, though now I like sudo better. I just |
16 |
> can't for the life of me get "sudo echo" or "sudo >" to work. I can |
17 |
> sudo su and then do the commands, however I am lazy and want to save |
18 |
> having to "exit" out from su. |
19 |
> |
20 |
> Jim |
21 |
|
22 |
man i have been wanting to know the answer to that for ages, but have |
23 |
lived with it. |
24 |
|
25 |
the elevation of privilege does not seem to survive the redirection. I |
26 |
suspect you need to know more than I do about the way redirection is |
27 |
handled by the shell to explain it. |
28 |
|
29 |
> -- |
30 |
> gentoo-user@g.o mailing list |
31 |
|
32 |
-- |
33 |
Nick Rout <nick@×××××××.nz> |
34 |
|
35 |
-- |
36 |
gentoo-user@g.o mailing list |