Commands not working

This is a discussion about Commands not working in the Everything Linux category; Hey people I've got a strange problem with Unix commands. Yesterday I configured my firewall using iptables. Today I wanted to modify it a bit so I log in as root and type iptables -L to check the rules but I get this error: bash: iptables: command not found No other iptables commands work either.

Everything Linux 1798 This topic was started by ,


data/avatar/default/avatar05.webp

16 Posts
Location -
Joined 2005-02-20
Hey people I've got a strange problem with Unix commands. Yesterday I configured my firewall using iptables. Today I wanted to modify it a bit so I log in as root and type iptables -L to check the rules but I get this error: bash: iptables: command not found
No other iptables commands work either. Any ideas why this has happend?
 
Thanks,

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Feb 26
Created
Feb 28
Last Response
0
Likes
1 minute
Read Time
User User User
Users

Responses to this topic


data/avatar/default/avatar04.webp

1678 Posts
Location -
Joined 2003-09-27
Did you try:
 
/usr/sbin/iptables
 
Or:
 
/sbin/iptables
 
?

data/avatar/default/avatar05.webp

16 Posts
Location -
Joined 2005-02-20
OP
When I try that I get a No such file or directory error.
 
Any ideas?

data/avatar/default/avatar39.webp

336 Posts
Location -
Joined 2004-07-09
when you're getting the error, what is the output of:
1. "id -a"
and
2. "echo $PATH"
 
??