Am i missing something here? why is this being so difficult?
[root@canmail c0mputerking]# su - root
[root@canmail ~]# service iptables status
/etc/sysconfig/iptables-config: line 53: *filter: command not found
/etc/sysconfig/iptables-config: line 54: :INPUT: command not found
/etc/sysconfig/iptables-config: line 55: :FORWARD: command not found
/etc/sysconfig/iptables-config: line 56: :OUTPUT: command not found
/etc/sysconfig/iptables-config: line 57: :RH-Firewall-1-INPUT: command not found
/etc/sysconfig/iptables-config: line 58: -A: command not found
/etc/sysconfig/iptables-config: line 59: -A: command not found
/etc/sysconfig/iptables-config: line 60: -A: command not found
/etc/sysconfig/iptables-config: line 61: -A: command not found
/etc/sysconfig/iptables-config: line 62: -A: command not found
/etc/sysconfig/iptables-config: line 64: -A: command not found
/etc/sysconfig/iptables-config: line 65: -A: command not found
/etc/sysconfig/iptables-config: line 67: -A: command not found
/etc/sysconfig/iptables-config: line 68: -A: command not found
/etc/sysconfig/iptables-config: line 69: -A: command not found
/etc/sysconfig/iptables-config: line 70: -A: command not found
/etc/sysconfig/iptables-config: line 71: -A: command not found
/etc/sysconfig/iptables-config: line 72: -A: command not found
/etc/sysconfig/iptables-config: line 73: -A: command not found
/etc/sysconfig/iptables-config: line 74: -A: command not found
/etc/sysconfig/iptables-config: line 75: -A: command not found
/etc/sysconfig/iptables-config: line 77: -A: command not found
/etc/sysconfig/iptables-config: line 78: -A: command not found
/etc/sysconfig/iptables-config: line 79: -A: command not found
/etc/sysconfig/iptables-config: line 80: -A: command not found
/etc/sysconfig/iptables-config: line 81: -A: command not found
/etc/sysconfig/iptables-config: line 82: -A: command not found
/etc/sysconfig/iptables-config: line 83: -A: command not found
/etc/sysconfig/iptables-config: line 84: -A: command not found
/etc/sysconfig/iptables-config: line 85: -A: command not found
/etc/sysconfig/iptables-config: line 86: -A: command not found
/etc/sysconfig/iptables-config: line 87: -A: command not found
/etc/sysconfig/iptables-config: line 89: -A: command not found
/etc/sysconfig/iptables-config: line 90: COMMIT: command not found
Firewall is stopped.
Quote:
Originally Posted by phoenix Yes, it is the hyphen '-' is what ensures the correct environment is set for that user. It's exactly the same if you do 'su zimbra' rather than 'su - zimbra' - you'll get errors.
Do an 'su - root' then try the command you did earlier: Code: service iptables status without the /sbin/ prefix. That should run OK and you should be able to make the changes you want. |