Re: redirecting the output with sudo
On 11/16/05, Carl Fink <carl@fink.to> wrote:
> Why not use "script"?
That's certainly another option. I was assuming the sudo configuration
was restricted to running that particular program. If sudo allows any
string to be passed to it, script is a good solution. As are the
suggested sudo sh -c "foo > bar" lines. However if the sudo user is
able to redirect output to arbitrary files, as root, the primary
function of sudo (restricted root privileges) seems to be bypassed.
IMO.
Reply to: