Re: [gentoo-user] OT - sudo doesn't do echo

2005-04-08 Thread Ciaran McCreesh
On Fri, 8 Apr 2005 08:51:44 -0400 Daniel Westermann-Clark <[EMAIL PROTECTED]> wrote: | sudo sh -c "echo something >> /etc/portage/package.keywords" If you've got quotes, or if your input is non-trivial, it's sometimes easier to do: echo something | sudo tee -a /etc/portage/package.keywords -- C

Re: [gentoo-user] OT - sudo doesn't do echo

2005-04-08 Thread A. Khattri
On Fri, 8 Apr 2005, Bill Roberts wrote: > I've started using sudo in preference to su'ing, but I've found that > "echo" doesn't seem to work with sudo. > > When I: > > $ sudo echo something >> /etc/portage/package.keywords > -/bin/bash: /etc/portage/package.keywords: Permission denied > > I look a

Re: [gentoo-user] OT - sudo doesn't do echo

2005-04-08 Thread Bill Roberts
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 proble

Re: [gentoo-user] OT - sudo doesn't do echo

2005-04-08 Thread Daniel Westermann-Clark
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

Re: [gentoo-user] OT - sudo doesn't do echo

2005-04-08 Thread Chris Prior
On 2005.04.08 08:06:47 -0400, Bill Roberts wrote: > I've started using sudo in preference to su'ing, but I've found that > "echo" doesn't seem to work with sudo. > $ sudo echo something >> /etc/portage/package.keywords > -/bin/bash: /etc/portage/package.keywords: Permission denied This is more a

[gentoo-user] OT - sudo doesn't do echo

2005-04-08 Thread Bill Roberts
I've started using sudo in preference to su'ing, but I've found that "echo" doesn't seem to work with sudo. When I: $ sudo echo something >> /etc/portage/package.keywords -/bin/bash: /etc/portage/package.keywords: Permission denied I look at the permissions: ls -l /etc/portage/package.keywords