IP-Masq stronger firewall-2.4
der.hans
plug-discuss@lists.plug.phoenix.az.us
Tue, 10 Sep 2002 11:10:46 -0700 (MST)
Am 10. Sep, 2002 schwätzte Clayton Stapleton so:
> On Monday 09 September 2002 12:31 pm, Matt Alexander wrote:
> > Can you post the contents of the script? Do you need to pass anything to
> > it like "start"?
>
> Hi Matt
> I did not type in anything other that "#!/bin/bash/etc/rc.d/rc.firewall-2.4".
That one doesn't make sense.
"#!/bin/bash" as the first line of a shell script tells the shell to use
bash to execute the script with bash. There shouldn't be anything else on
that line. "/etc/rc.d/rc.firewall-2.4" is the path to the script.
Is the script executable? Give us the results of "ls -l
/etc/rc.d/rc.firewall-2.4". You should have an 'x' in the 4th place,
possibly in the 7th and 10th places as well.
Have you been using a root shell to start the service? Normally you
shouldn't use a root shell, but for starting and stopping services you
generally need to be root.
Matt is correct, you probably need to tell it to start.
"/etc/rc.d/rc.firewall-2.4 start".
> The same as when using the simpler firewall "#/etc/rc.d/rc.firewall-2.4".
Is there really a hash, "#", in front of that one?
> They both start with "#!/bin/sh". So why one says "bad interpretor" and
> the others works fine I do not know.
Because one is correct and the other isn't :).
'bad interpreter' means it couldn't find or use the requested shell to run
the script. A shell is really a 'shell interpreter'.
ciao,
der.hans
--
# https://www.LuftHans.com/
# Hope has two beautiful daughters: Anger and Courage. Anger at the way
# things are, and Courage to struggle to create things as they should be.
# -- St. Augustine