LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-07-2010, 06:38 PM   #1
rfreiberger
Member
 
Registered: Jul 2009
Location: Union City, CA, USA
Distribution: FreeBSD, Mint, CentOS
Posts: 35

Rep: Reputation: 16
RHEL 4, /etc/sysconfig/iptables permission denied


I'm installing Webmin on a older DNS server here at work. Can't connect to port 10000 so I checked the server ports via NMAP, looked like the port is closed. I tried to run /etc/sysconfig/iptables but this returned a "permission denied" message.

I'm logged in as root, not sure what I'm missing, maybe I'm running the command incorrectly?

Thanks!
 
Old 04-07-2010, 07:38 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,616

Rep: Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518Reputation: 518
Is /etc/sysconfig/iptables a binary or an executable?
 
Old 04-07-2010, 08:47 PM   #3
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: always back to Fedora
Posts: 241

Rep: Reputation: 50
You will find that /etc/sysconfig/iptables is the config file for iptables. You probably want to run /sbin/iptables .
 
Old 04-07-2010, 08:54 PM   #4
rfreiberger
Member
 
Registered: Jul 2009
Location: Union City, CA, USA
Distribution: FreeBSD, Mint, CentOS
Posts: 35

Original Poster
Rep: Reputation: 16
I ran the command "file iptables" and the return is "iptables: ASCII text".

To make sure I also checked the file type using ls, it's listed with rw access.
 
Old 04-07-2010, 08:56 PM   #5
rfreiberger
Member
 
Registered: Jul 2009
Location: Union City, CA, USA
Distribution: FreeBSD, Mint, CentOS
Posts: 35

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ArfaSmif View Post
You will find that /etc/sysconfig/iptables is the config file for iptables. You probably want to run /sbin/iptables .
Looks like that did the trick, I was following the document from Webmin's site and assumed it was correct.

Thanks!
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing /etc/sysconfig/sshd file on RHEL 4 johncsl82 Linux - Enterprise 1 09-10-2009 12:07 AM
NFS mounts not working in AIX 5.3 getting permission denied from RHEL sudheer_pn Linux - Newbie 2 10-06-2008 01:29 AM
iptables: Permission denied jst1 Suse/Novell 4 04-17-2006 06:12 PM
iptables -P vs :OUTPUT in /etc/sysconfig/iptables TomF Linux - Security 2 04-14-2005 10:50 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM


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

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