Running an executable in a mounted partition

I am not able to run any executable file in a mounted partition(whether its a script or binary). Can anyone explain why its not possible to run an exe in a mounted partition? Any solution for this problem? Note: I am able to run a script by ...




Topic Options
#1796 - 05/13/03 09:16 AM Running an executable in a mounted partition
Valluvan Offline
stranger

Registered: 11/21/02
Posts: 5
I am not able to run any executable file in a mounted partition(whether its a script or binary).

Can anyone explain why its not possible to run an exe in a mounted partition? Any solution for this problem?

Note:
I am able to run a script by
$ sh script-name
when I am giving, I get the following error
$ ./script-name (eventhough executable permission is set)
bash:./script-name: /bin/sh: bad interpreter: Permission denied


When I am running a binary,
$ ./a.out
bash: ./a.out: Permission denied

Regards,
Valluvan.

Top
Advertisement
#1804 - 05/14/03 03:24 PM Re: Running an executable in a mounted partition
blueworm Offline
member

Registered: 03/02/03
Posts: 169
Ok the awnser is puzzling me, but it could be as simple as setting
execute permision as root.

You can do this by typing su chmod a+x yourFile.sh

try doing this:
$ echo > test.sh echo "Hello world"

$ ./test.sh
:bash ./test.sh: Permission denied // this is normal

// to execute the script test.sh you have to make the file executable

$ chmod a+x test.sh
$ ./test.sh
Hello world

If all this has helped you please read man page chmod.
$ man chmod.

Top
#1827 - 05/19/03 05:23 PM Re: Running an executable in a mounted partition
Valluvan Offline
stranger

Registered: 11/21/02
Posts: 5
Quote:
I am not able to run any executable file in a mounted partition(whether its a script or binary).

when I am giving, I get the following error
$ ./script-name (eventhough executable permission is set)
bash:./script-name: /bin/sh: bad interpreter: Permission denied


Hi,

I have set the executable permission for the script using chmod, even though I am not able to execute it directly ie I have to give sh scriptname to run the script!

Regards,
Valluvan.

Top


Forums
Windows Support Forums
Everything New Technology
Legacy OS
Hardware
Software
Games
Networking
Customization & Tweaking
Security

Linux Support Forums
Everything Linux
Linux Hardware
Linux Software
Linux Games
Linux Networking
Linux Customization & Tweaking
Linux Security

Apple Support Forums
Everything Apple
Recent Topics
Router keeps disconnecting internet
by rfboyd
12/06/09 04:18 PM
Program Running When Starting Computer
by cbk
12/05/09 11:05 AM
System Crashing Error 1000008e, 1000000a, 0000004e
by PapaPrem
11/30/09 06:01 PM
Starcraft Broodwar Campaign Crash Problem
by Lurker02
11/30/09 12:33 PM
How do I affect the order of ALT-Tab?
by KenJackson
11/28/09 10:10 PM
Who's Online
0 Registered (), 268 Guests and 36 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91280 Members
24 Forums
58508 Topics
189011 Posts

Max Online: 1079 @ 03/12/08 01:36 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22