Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localhost connection refused



John De Hoog (dehoog@example.com) wrote:

> > /sbin/ipchains -L -v
> 
> I did su root. When I go to /sbin and try it, this is what we get:
> 
> [root@example.com /sbin]# ipchains -L -v
> bash: ipchains: command not found
> [root@example.com /sbin]#
> 
> But a check of the directory shows that ipchains is in fact in /sbin.

Do you notice any difference between what I told you to do and
what you actually did?

What I told you:

/sbin/ipchains -L -v

What you did:

cd /sbin
ipchains -L -v

You did su but not su - so the way you did it won't work (because you
kept your own environment rather than getting the root environment),
so you have to use the full path to the command.

There is a third way:

cd /sbin
./ipchains -L -v

However, using the full path to the command is recommended.

Jonathan
-- 
There is Bag of Modul in the router


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links