If I try to run ipchains logged on as me
[username@linux username]$
I get an error that I don't have permission.
If I run it as root
[root@linux username]#
I get the command not found error (path problem?)
When I am on as root I can type each line from the script manually and everything works fine, but in a script it fails when I type
. scriptname
with loads of errors.
What is my obvious mistake and how do I cure it?
[username@linux username]$
I get an error that I don't have permission.
If I run it as root
[root@linux username]#
I get the command not found error (path problem?)
When I am on as root I can type each line from the script manually and everything works fine, but in a script it fails when I type
. scriptname
with loads of errors.
What is my obvious mistake and how do I cure it?