LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > Linux - News > Syndicated Linux News
User Name
Password
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.

Notices

Reply
 
Search this Thread
Old 07-08-2010, 05:00 AM   #1
LXer
LXer NewsBot
 
Registered: Dec 2005
Posts: 75,862

Rep: Reputation: 87
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.

Read More...
 
  


Reply


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 04:30 PM
sudo - permission denied! yogaboy Linux - Newbie 5 12-29-2006 12:58 AM
Getting permission denied errors with NFS triley Linux - General 1 08-24-2006 05:39 PM
sudo permission denied Swift&Smart Slackware 5 07-13-2006 02:05 AM
./configure errors: permission denied! TippExed Linux - Software 4 09-10-2002 11:50 AM


All times are GMT -5. The time now is 02:55 AM.

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