Author Topic: Linux Script File Permission Problem - SOLVED  (Read 789 times)

Linux Script File Permission Problem - SOLVED
« on: 14 March, 2009, 06:10:29 pm »
I've got a couple of script files that I can execute fine (as non-root) from the command line.

However, when I try to invoke the same script from inside another script, I get 'Permission Denied'.

Do I need to modify permissions for the scripts being invoked and, if so, how?

Zipperhead

  • The cyclist formerly known as Big Helga
Re: Linux Script File Permission Problem
« Reply #1 on: 14 March, 2009, 06:20:23 pm »
Are you invoking them with something like

sh scriptname

or ./scritname

if the former, then they will run without execute permissions

try running
   chmod ugo+rx scriptname
to make sure that they are readable & executable (by anybody)
Won't somebody think of the hamsters!

Re: Linux Script File Permission Problem
« Reply #2 on: 14 March, 2009, 06:29:35 pm »
Thanks Zipperhead!  I had forgotten the 'sh'.