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
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
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
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
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
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
6 matches
Mail list logo