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

WEBINAR:
On-Demand

How to Help Your Business Become an AI Early Adopter


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


×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.