Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Permission Denied.. but why?

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Wikt
n00b
n00b
User avatar
Posts: 21
Joined: Mon Feb 16, 2004 3:27 pm

Permission Denied.. but why?

  • Quote

Post by Wikt » Mon Mar 15, 2004 1:01 pm

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: Select all

bash-2.05b# ./calc
bash: ./calc: Permission denied
entry in fstab is:

Code: Select all

/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".
Top
nerdbert
l33t
l33t
User avatar
Posts: 981
Joined: Sun Feb 09, 2003 3:59 pm
Location: Berlin
Contact:
Contact nerdbert
Website

  • Quote

Post by nerdbert » Mon Mar 15, 2004 1:03 pm

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...
Top
rewt
n00b
n00b
User avatar
Posts: 58
Joined: Thu Feb 19, 2004 9:38 am

  • Quote

Post by rewt » Mon Mar 15, 2004 1:06 pm

Is calc executable? What does

Code: Select all

ls-l calc
say?
Because sometimes peace is another word for surrender... and secrets have a way of getting out
Top
Wikt
n00b
n00b
User avatar
Posts: 21
Joined: Mon Feb 16, 2004 3:27 pm

  • Quote

Post by Wikt » Mon Mar 15, 2004 2:07 pm

It can't be a problem with these kinda permissions. A full check I did:

Code: Select all

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".
Top
skunk
l33t
l33t
User avatar
Posts: 646
Joined: Wed May 28, 2003 11:24 pm
Location: granada, spain
Contact:
Contact skunk
Website

  • Quote

Post by skunk » Mon Mar 15, 2004 2:36 pm

not sure, but you should maybe add the "exec" option to your fstab entry
Top
Wikt
n00b
n00b
User avatar
Posts: 21
Joined: Mon Feb 16, 2004 3:27 pm

  • Quote

Post by Wikt » Mon Mar 15, 2004 5:23 pm

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".
Top
Post Reply

6 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic