You are not logged in.

#1 2009-09-08 07:43:51

hsn
Member
Registered: 2009-02-07
Posts: 17

[solved] -bash: ./test: Permission denied

hello every one

I have created a test file:

#!/bin/sh

echo "hello, this is a test"
ls

then

chmod +x test
./test

and the result is

-bash: ./test: Permission denied

pleas help me no shell scrips work!!! sad

Last edited by hsn (2009-09-08 08:05:16)

Offline

#2 2009-09-08 08:04:56

hsn
Member
Registered: 2009-02-07
Posts: 17

Re: [solved] -bash: ./test: Permission denied

It was for a wrong mount option smile

Offline

#3 2009-09-08 08:05:13

nowahn
Member
From: elsewhere
Registered: 2008-12-05
Posts: 75

Re: [solved] -bash: ./test: Permission denied

what are the outputs of these commands :

ls -dl .
ls -l test
mount

Is the partition holding your working directory mounted with the "noexec" option ?


take time to daydream, inspiration comes ...

Offline

#4 2009-09-08 08:07:25

hsn
Member
Registered: 2009-02-07
Posts: 17

Re: [solved] -bash: ./test: Permission denied

nowahn wrote:

what are the outputs of these commands :

ls -dl .
ls -l test
mount

Is the partition holding your working directory mounted with the "noexec" option ?

Thanks

Offline

#5 2009-09-08 08:07:57

nowahn
Member
From: elsewhere
Registered: 2008-12-05
Posts: 75

Re: [solved] -bash: ./test: Permission denied

Damn, I was right, but you beat me big_smile


take time to daydream, inspiration comes ...

Offline

Board footer

Powered by FluxBB