Tutorial: Fixing sudo Permission Denied Errors
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). One solution to this is to jump straight into the root user shell with su. However, this ignores all the many very good reasons to use sudo in the first place (including logging, ticketing and a lower risk of accidentally doing something foolish because you've left a root shell lying around). Here's a better solution.
|
|
Full Story |
This topic does not have any threads posted yet!
You cannot post until you login.