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
Carmageddon 2 weird
by Kuikie
Yesterday at 04:32 PM
Computer Repair Utility Kit
by gailerl
12/28/09 01:26 PM
x86 OS, RAM, & Virtual Machines
by Myke
12/22/09 08:16 PM
Ram Question
by JohnnyAshes
12/21/09 09:50 PM
NEWBIE needs help with REALTEK
by SerryJW
12/21/09 06:09 AM
Who's Online
2 Registered (jmmijo, Myke), 253 Guests and 36 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
91424 Members
24 Forums
59371 Topics
189904 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