Hello All,
I am at my wit's end and need some help. I am running thje firewall-2.4 stroger script on Redhat 7.3 currently with no problem
(
http://www.ecst.csuchico.edu/~dranch...l-2.4-stronger)
I just got a copy of redhat enterprise Linuux 3.0 and I am trying to replace the 7.3 box with rhel 3.0 .
Now here is the confusion, I cannot seem to run this same script on rhel 3.0. When i try running it manually from command line, I get the error:
[root@mybox root]# ./firewall.iptables
: bad interpreter: No such file or directory
When I place the script in the /etc/rc.d/init.d folder and create the appropriate links to the runlevels I want and boot up I get this error instead:
execvp: nosuch file or directory
As you can see from the script, it has the apropriate path to sh (i.e. #!/bin/sh).The bad Interprator seems to indicate it cannot find the sh or bash shell or something. Which is really weird because it works without a hitch on Redhat 7.3.
I have read various posts about this problem but could not find a conclusive fix for it . I found some hints that seem to indicate the execvp error is created by the /etc/rc.d/init.d/functions script but again no definite fix.
I am desperate and any help or suggestion will be greatly appreciated.
Kofi.