[YLUG] Kunbunto

Pete Fenelon pete at fenelon.com
Wed Sep 13 17:33:25 BST 2006


>
> sudo /sbin/privileged_command > privileged_file
>
> which fails because only the command is executed with root priorities
> and you can't pipe the output.
>

sudo sh -c 'privileged command > privileged_file'

(There was a thread here about why "sudo command > file" doesn't work
a while back).


pete
--
pete at fenelon.com "There's no room for enigmas in built-up areas"



More information about the York mailing list