On 08:51 Fri 08 Apr , Daniel Westermann-Clark wrote: > 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"
Thanks. ...teach a man to fish... Bill Roberts
pgpaG51ApnEmr.pgp
Description: PGP signature