Mailing List Archive

Support open source code!


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

Re: Localhost connection refused



On Sun, Jul 08, 2001 at 04:30:32PM +0900, John De Hoog wrote:
> Jonathan Byrne wrote...
> > John De Hoog (dehoog@example.com) wrote:
> > > bash: ipchains: command not found
> >
> > You're either:
> >
> > 1) Not root
> > 2) Are root, but did not use su -
> >
> > In any event, you must be root to do this.  If you did
> > not use su - then you need to use the complete path to
> > the command:
> >
> > /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.

That means that /sbin is not in your path. If you find yourself needing
programs in /sbin on a regular basis, edit your .bashrc and add it to the list
of paths. In the meantime, you can run it by typing the full path name:
/sbin/ipchains
or type the relative path:
./ipchains

-- 
Shimpei Yamashita                               http://www.shimpei.org/


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links