Re: echo bug?




--- 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

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


Relevant Pages

  • Re: root /etc/csh
    ... I would prefer to have bash also when working as root. ... Unfortunately, sudo -i is not a substitute for su -l, as sudo tries to be more ... $ echo $MAIL ...
    (freebsd-questions)
  • Re: [Full-disclosure] Todd Miller Sudo local root exploit discovered by Slouching
    ... ....but if the 'sudoers' file is correctly configured then you would not ... have the appropriate sudo permission to run the 'sudoedit' as root. ... user is not allowed to execute './sudoedit test' as root on this ... echo Tod Miller Sudo local root exploit ...
    (Full-Disclosure)
  • Re: Todd Miller Sudo local root exploit discovered by Slouching
    ... ....but if the 'sudoers' file is correctly configured then you would not ... have the appropriate sudo permission to run the 'sudoedit' as root. ... user is not allowed to execute './sudoedit test' as root on this ... echo Tod Miller Sudo local root exploit ...
    (Bugtraq)
  • Re: Dumb question of the week.
    ... That is without ending the entire session and logging into KDE ... as root with the bomb screen and everything. ... $ echo $PATH ... invoke sudo -s. ...
    (alt.os.linux.suse)
  • Re: ndiswrapper and wireless card
    ... sudo: ndiswrapper: command not found ... sudo gives you the same *rights* as root. ... if you do `echo $PATH` you will see the following: ...
    (alt.os.linux.suse)