A little further explination of what vdogvictor was trying to tell you...
In Windows the extension of the file determines if a file is executable or not. *.bat or *.exe are executable files in Windows.
Linux is different. The exetension has nothing to do with wether or not the file is executable. The permissions determine that. When you type in 'ls -l' at a command prompt you'll see a list of everything in the directory along with other information. Look at the first column, those are the permissions.
There are four things listed in the permissions.[list=1][*]Type represented (file, directory, link)[*]Owners permissions[*]Groups permissions[*]Worlds permissions[/list=1]
The second through fifth characters are the Owners permissions, the sixth through eight characters are the Groups permissions, and the last three are the Worlds permissions.
In all three blocks the permissions read, in this order:
r = read permission (4)
w = write permission (2)
x = execute permission (1)
If the Owner/Group/World has the permission then the letter representing it will show up, otherwise a dash (-) will show up.
You can change the permissions with the chmod command. Abbreviations can be used with this command to add or take away permissions of any of the three areas.
u = owner/user
g = group
o = other/world
To add the read permisson for the world use 'chmod o+r'. To take it away use 'chmod o-r'. To give write permission to every type of user use 'chmod +w' (not specifying who it is for applies the change to all areas).
Short answer to the question, you have to make sure you have execute authority for the script.
|