On 2005-04-08 08:06:47 -0400, Bill Roberts wrote: > $ sudo echo something >> /etc/portage/package.keywords > -/bin/bash: /etc/portage/package.keywords: Permission denied
Chris already gave one solution, but I can explain the problem. In your original command, the redirection is happening in your user's shell, not with the permissions granted by sudo. The command as sudo sees it is "echo something". You can use sudo with redirection: sudo sh -c "echo something >> /etc/portage/package.keywords" -- Daniel Westermann-Clark -- [email protected] mailing list

