Commands not working

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 on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

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"
 
??