Re: redirecting out of a command invoked by sudo fails

2010-06-25 Thread JD
On 06/25/2010 03:44 PM, Greg Woods was caught red-handed while writing:: > On Fri, 2010-06-25 at 14:56 -0700, JD wrote: > > >>> >>> >> As I have already answered, let'ts not beat a dead horse. >> Issue already very well explained by Bill Crawford. >> No need for any followups. >>

Re: redirecting out of a command invoked by sudo fails

2010-06-25 Thread Greg Woods
On Fri, 2010-06-25 at 14:56 -0700, JD wrote: > > > As I have already answered, let'ts not beat a dead horse. > Issue already very well explained by Bill Crawford. > No need for any followups. No need to be so touchy. Sometimes messages cross in the mail. --Greg -- users mailing list users

Re: redirecting out of a command invoked by sudo fails

2010-06-25 Thread JD
On 06/25/2010 02:51 PM, Greg Woods was caught red-handed while writing:: > On Fri, 2010-06-25 at 12:33 -0700, JD wrote: > >> On 06/25/2010 12:04 PM, Bill Crawford was caught red-handed while writing:: >> >>> On 25 June 2010 19:38, JD wrote: >>> >>> cd /var/lib sudo t

Re: redirecting out of a command invoked by sudo fails

2010-06-25 Thread Greg Woods
On Fri, 2010-06-25 at 12:33 -0700, JD wrote: > > On 06/25/2010 12:04 PM, Bill Crawford was caught red-handed while writing:: > > On 25 June 2010 19:38, JD wrote: > > > >> cd /var/lib > >> sudo tar cjf - rpm> rpm.tar.bz2 > >> sh: rpm.tar.bz2: cannot create [Permission denied] > sudo only run

Re: redirecting out of a command invoked by sudo fails

2010-06-25 Thread JD
On 06/25/2010 12:49 PM, Mikkel was caught red-handed while writing:: > On 06/25/2010 01:38 PM, JD wrote: > >> cd /var/lib >> sudo tar cjf - rpm> rpm.tar.bz2 >> sh: rpm.tar.bz2: cannot create [Permission denied] >> >> My username is in /etc/sudoers: >> jd ALL=(ALL) NOPASSWD: ALL >>

Re: redirecting out of a command invoked by sudo fails

2010-06-25 Thread Mikkel
On 06/25/2010 01:38 PM, JD wrote: > cd /var/lib > sudo tar cjf - rpm > rpm.tar.bz2 > sh: rpm.tar.bz2: cannot create [Permission denied] > > My username is in /etc/sudoers: > jd ALL=(ALL) NOPASSWD: ALL > > Yeah... I know it is not safe to set NOPASSWD and all that... > but that is not w

Re: redirecting out of a command invoked by sudo fails

2010-06-25 Thread JD
On 06/25/2010 12:04 PM, Bill Crawford was caught red-handed while writing:: > On 25 June 2010 19:38, JD wrote: > >> cd /var/lib >> sudo tar cjf - rpm> rpm.tar.bz2 >> sh: rpm.tar.bz2: cannot create [Permission denied] >> >> My username is in /etc/sudoers: >> jd ALL=(ALL) NOPASSWD:

Re: redirecting out of a command invoked by sudo fails

2010-06-25 Thread Todd Zullinger
JD wrote: > cd /var/lib > sudo tar cjf - rpm > rpm.tar.bz2 > sh: rpm.tar.bz2: cannot create [Permission denied] Why use f - and then redirect stdout when you could just do: sudo tar cjf rpm.tar.bz2 rpm ? > Is this an established legacy behaviour of sudo? This is the way it has always been and

Re: redirecting out of a command invoked by sudo fails

2010-06-25 Thread Bill Crawford
On 25 June 2010 19:38, JD wrote: > cd /var/lib > sudo tar cjf - rpm > rpm.tar.bz2 > sh: rpm.tar.bz2: cannot create [Permission denied] > > My username is in /etc/sudoers: > jd      ALL=(ALL)       NOPASSWD: ALL > > Yeah... I know it is not safe to set NOPASSWD and all that... > but that is not why

redirecting out of a command invoked by sudo fails

2010-06-25 Thread JD
cd /var/lib sudo tar cjf - rpm > rpm.tar.bz2 sh: rpm.tar.bz2: cannot create [Permission denied] My username is in /etc/sudoers: jd ALL=(ALL) NOPASSWD: ALL Yeah... I know it is not safe to set NOPASSWD and all that... but that is not why I am asking about. Is this an established legacy