Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


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: