redirecting out of a command invoked by sudo fails

JD jd1008 at gmail.com
Fri Jun 25 18:38:36 UTC 2010


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 behaviour of sudo?


More information about the users mailing list