Compatible Support Forums: Running an executable in a mounted partition

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Running an executable in a mounted partition

#1 User is offline   Valluvan 

  • stranger
  • Group: Members
  • Posts: 5
  • Joined: 21-November 02

Posted 13 May 2003 - 09:16 AM

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.
0

#2 User is offline   blueworm 

  • member
  • Group: Members
  • Posts: 169
  • Joined: 02-March 03

Posted 14 May 2003 - 03:24 PM

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.
0

#3 User is offline   Valluvan 

  • stranger
  • Group: Members
  • Posts: 5
  • Joined: 21-November 02

Posted 19 May 2003 - 05:23 PM

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.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users