Shell Scripting Permission Denied

Everytime I try to run a shell script I get the error message permission denied.

So I have googled/searched around and have been using the command chmod u+rwx (filename) to give myself permission to execute my program. However, I was wondering if there was anyway to actually just this to allow myself permission to all programs, rather than having to do this command for every shell script I create.

Thanks

In your profile (.profile or .bashrc) add this line:

umask 022

pls show ur script any one?

I'm not sure how umask can help, if I understand the problem.

There's ways to avoid the "Permission Denied" message when executing a script, but none as simple and reliable as just "chmod'ing" the file.

Thanks Jim

the chmod command does indeed work on a case by case basis though.

what shell u r working and what shell u r using in you script file, show us ur script. thanks