Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.


  Search this Thread
Old 07-08-2010, 04:00 AM   #1
LXer NewsBot
Registered: Dec 2005
Posts: 97,334

Rep: Reputation: 102Reputation: 102
LXer: Tutorial: Fixing sudo Permission Denied Errors

Published at LXer:

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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo and >>: permission denied mcd Linux - Software 2 06-25-2008 03:30 PM
sudo - permission denied! yogaboy Linux - Newbie 5 12-28-2006 11:58 PM
Getting permission denied errors with NFS triley Linux - General 1 08-24-2006 04:39 PM
sudo permission denied Swift&Smart Slackware 5 07-13-2006 01:05 AM
./configure errors: permission denied! TippExed Linux - Software 4 09-10-2002 10:50 AM > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 07:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration