View previous topic :: View next topic |
Author |
Message |
Wikt n00b
Joined: 16 Feb 2004 Posts: 21
|
Posted: Mon Mar 15, 2004 1:01 pm Post subject: Permission Denied.. but why? |
|
|
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? _________________ # emerge life
emerge: there are no masked or unmasked ebuilds to satisfy "life". |
|
Back to top |
|
|
nerdbert l33t
Joined: 09 Feb 2003 Posts: 981 Location: Berlin
|
Posted: Mon Mar 15, 2004 1:03 pm Post subject: |
|
|
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 |
|
|
rewt n00b
Joined: 19 Feb 2004 Posts: 58
|
Posted: Mon Mar 15, 2004 1:06 pm Post subject: |
|
|
Is calc executable? What does
say? _________________ Because sometimes peace is another word for surrender... and secrets have a way of getting out |
|
Back to top |
|
|
Wikt n00b
Joined: 16 Feb 2004 Posts: 21
|
Posted: Mon Mar 15, 2004 2:07 pm Post subject: |
|
|
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 |
|
|
skunk l33t
Joined: 28 May 2003 Posts: 646 Location: granada, spain
|
Posted: Mon Mar 15, 2004 2:36 pm Post subject: |
|
|
not sure, but you should maybe add the "exec" option to your fstab entry |
|
Back to top |
|
|
Wikt n00b
Joined: 16 Feb 2004 Posts: 21
|
Posted: Mon Mar 15, 2004 5:23 pm Post subject: |
|
|
skunk wrote: | not sure, but you should maybe add the "exec" option to your fstab entry |
Worked! Thanks for help! _________________ # emerge life
emerge: there are no masked or unmasked ebuilds to satisfy "life". |
|
Back to top |
|
|
|