Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Permission Denied.. but why?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Wikt
n00b
n00b


Joined: 16 Feb 2004
Posts: 21

PostPosted: Mon Mar 15, 2004 1:01 pm    Post subject: Permission Denied.. but why? Reply with quote

I have a weird problem trying to use files from a mounted directory. When I try to run a binary file on my disk /mnt/cooldisk I get THIS:
Code:

bash-2.05b# ./calc
bash: ./calc: Permission denied

entry in fstab is:
Code:

/dev/hda11              /mnt/cooldisk   ext3            auto,user               0 0

I get Permission denied for every script/binary I try to open. So I only may store stuff in it. What is wrong? :x
_________________
# emerge life
emerge: there are no masked or unmasked ebuilds to satisfy "life".
Back to top
View user's profile Send private message
nerdbert
l33t
l33t


Joined: 09 Feb 2003
Posts: 981
Location: Berlin

PostPosted: Mon Mar 15, 2004 1:03 pm    Post subject: Reply with quote

I guess you don't have x permission on calc.
What does ls -l calc say?
_________________
I'm really wondering what Lovechild is doing nowadays...
Back to top
View user's profile Send private message
rewt
n00b
n00b


Joined: 19 Feb 2004
Posts: 58

PostPosted: Mon Mar 15, 2004 1:06 pm    Post subject: Reply with quote

Is calc executable? What does
Code:
ls-l calc

say?
_________________
Because sometimes peace is another word for surrender... and secrets have a way of getting out
Back to top
View user's profile Send private message
Wikt
n00b
n00b


Joined: 16 Feb 2004
Posts: 21

PostPosted: Mon Mar 15, 2004 2:07 pm    Post subject: Reply with quote

It can't be a problem with these kinda permissions. A full check I did:
Code:
bash-2.05b$ ls -l
total 131376
drwxr-xr-x    2 wikt     users        4096 Feb 28 22:50 beos
-rwxr-xr-x    1 root     root        12617 Mar 15 13:56 calc
drwxrws---    2 wikt     users        4096 Feb 16 15:45 cvs-src
drwxr-xr-x    2 wikt     users       16384 Feb 28 22:50 distfiles
-rwxr-xr-x    1 wikt     users    134308881 Mar  2 22:37 eClient-linux.run
drwxr-xr-x    3 wikt     users        4096 Mar 13 23:52 games
drwx------    2 wikt     users       16384 Feb 18 22:46 lost+found
drwxr-xr-x    2 wikt     users        4096 Mar 14 17:21 mp3
drwxr-xr-x    2 wikt     users        4096 Mar 13 23:52 plugin
drwxr-xr-x    2 wikt     users        4096 Mar  2 22:31 scrapbook
drwxr-xr-x    5 wikt     users        4096 Mar 13 21:55 winex
bash-2.05b$ ./calc
bash: ./calc: Permission denied
bash-2.05b$ su
Password:
bash-2.05b# ./calc
bash: ./calc: Permission denied
bash-2.05b# sh ./calc
./calc: ./calc: cannot execute binary file
bash-2.05b# rm -rf calc
bash-2.05b# g++ /home/wikt/src/calc++/stable/calc.
calc.cpp  calc.exe
bash-2.05b# g++ /home/wikt/src/calc++/stable/calc.cpp -o ./calc
bash-2.05b# ./calc
bash: ./calc: Permission denied
bash-2.05b#

_________________
# emerge life
emerge: there are no masked or unmasked ebuilds to satisfy "life".
Back to top
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Mon Mar 15, 2004 2:36 pm    Post subject: Reply with quote

not sure, but you should maybe add the "exec" option to your fstab entry
Back to top
View user's profile Send private message
Wikt
n00b
n00b


Joined: 16 Feb 2004
Posts: 21

PostPosted: Mon Mar 15, 2004 5:23 pm    Post subject: Reply with quote

skunk wrote:
not sure, but you should maybe add the "exec" option to your fstab entry


Worked! Thanks for help! :D
_________________
# emerge life
emerge: there are no masked or unmasked ebuilds to satisfy "life".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum