Re: echo bug?



On Fri, 2009-09-11 at 19:23 -0700, Leonard Chatagnier wrote:

--- On Fri, 9/11/09, Jay Daniels <tux@xxxxxxxxx> wrote:

From: Jay Daniels <tux@xxxxxxxxx>
Subject: Re: echo bug?
To: ubuntu-users@xxxxxxxxxxxxxxxx
Date: Friday, September 11, 2009, 9:13 PM

On Fri, 2009-09-11 at 21:51 -0400, Shannon McMackin wrote:
> On 09/11/2009 09:34 PM, Jared Greenwald wrote:
> > What exactly are you trying to accomplish?
> >
> > On Fri, Sep 11, 2009 at 9:19 PM, Jay
Daniels<tux@xxxxxxxxx> wrote:
> >> Why doesn't this work???
> >>
> >>
> >> sudo echo "deb
http://ppa.launchpad.net/gwibber-team/ubuntu hardy main"
> >>> /etc/apt/sources.list.d/gwibber.list
> >> bash: /etc/apt/sources.list.d/gwibber.list: Permission
denied
> >>
> >>
> >> Now I thought sudo was the equivalent to root
permissions?
> >>
> >>
> >> jay
> >>
> >>
> >> --
> >> ubuntu-users mailing list
> >> ubuntu-users@xxxxxxxxxxxxxxxx
> >> Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >>
> >
> Appears he's trying an easy way to add a line to an apt-repo
file.
>
> Can you do a sudo vi of that file?
>
>

yes I can, but I wanted to do it from a shell script and
wonder why my
echo doesn't work as expected?

Perhaps sudo is not the equivalent of root or echo does not
inherit the
permission from sudo?

Have seen similar situations where sudo doesn't work but
issuing
the command from a root terminal does. You might try opening a
root terminal and running the echo command again to see if it
works,

Leonard Chatagnier
lenc5570@xxxxxxxxxxxxx




Works from root terminal, so it must be a bug in sudo.


jay


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • start-stop-daemon qemu-nbd
    ... nbd-client localhost 1024 / dev/nbd0 ... when inside of sudo. ... echo "File: $QCOW" ... echo "Loading NBD kernel module" ...
    (Debian-User)
  • Re: How to create qemu-bootable image using debootstrap?
    ... install multiboot specification compliant kernel to it ... echo "Formating $1.raw with ext2 filesystem" ... sudo cp /etc/resolv.conf $1.mount/etc ... sudo chroot $1.mount apt-get -y install gnupg ...
    (Debian-User)
  • Re: Haupauge WinTV-PVR 350 installation adventure
    ... sudo make install # says I must do these ... echo not loaded, loading ... ... setting U taint flag. ... 32768 buffers ...
    (alt.os.linux.suse)
  • Re: echo bug?
    ... Subject: echo bug? ... Now I thought sudo was the equivalent to root permissions? ...
    (Ubuntu)