Linux Today: Linux News On Internet Time.





More on LinuxToday


Easy Redirection of Sudo Output

Jul 06, 2010, 19:33 (1 Talkback[s])
(Other stories by Juliet Kemp)

"If you're using Sudo, you've probably already discovered that the increased privileges apply only to the first command typed and don't extend to any input or output redirection. For example:

sudo iptables -L > /etc/iptables

"will give you a 'Permission denied' error because the shell interprets the first command (with sudo), then pipes it into the second command (without sudo)."

Complete Story

Related Stories: