Alexander Dalloz wrote:
I am logged in as su (no one else uses this machine). When using the prefix './' in /sbin I get the following:Am Di, den 30.03.2004 schrieb Brian Tilley um 17:38:
Hi,
When I try to run either 'route' or 'iptables' I get a 'command not found' error message. When I go to the sbin directory and try it there I get the same error message. When I open both "route' and 'iptables' in vi I see a bunch of weird symbols???????. The /etc/hosts file seems to be OK, with both localhost and my domain listed.
Brian
route and iptables are binaries, no text files. Log in as root correctly! Either on console directly as root, or become root using su with the proper command "su -" (see man su). Having not root login shell but only a shell and you change directory to /sbin you have to run the command with a leading ./ like ./route.
Alexander
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
142.179.210.232 142.179.210.232 255.255.255.248 UG 0 0 0 eth0
142.179.210.232 0.0.0.0 255.255.255.248 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
Brian