Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] bash problem: permission denied
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
fisch
n00b
n00b


Joined: 26 Nov 2004
Posts: 2
Location: Zurich

PostPosted: Fri Nov 26, 2004 7:18 pm    Post subject: [OT] bash problem: permission denied Reply with quote

habe ein neues aktuelles Gentoo aufgesetzt, bei der Konfiguration ist da aber wohl irgend etwas kleines nicht ganz richtig gelaufen...

wenn ich ein Shell Script ausführen will kommen immer fehlermedlungen folgender Art:
(sowohl als user root, als auch als 'normaler' user):

Quote:
bash-2.05b# ./thunderbird-bin
bash: ./thunderbird-bin: Permission denied

oder

Quote:
bash-2.05b# ./run-mozilla.sh
bash: ./run-mozilla.sh: /bin/sh: bad interpreter: Permission denied


auch wenn man explizit 'bash' als Shelle angiebt funktioniert es nicht:

Quote:
bash-2.05b# /bin/bash ./thunderbird
./thunderbird: ./run-mozilla.sh: /bin/sh: bad interpreter: Permission denied


oder

Quote:
bash-2.05b# /bin/bash ./run-mozilla.sh

run-mozilla.sh: Cannot execute .



hat jemand eine Idee, an was das liegen könnte?
habe auch die bash noch einmal 'emerged'...
wahrscheinlich ist irgendwo etwas mit den (zugriffs-)rechten falsch konfiguriert..

danke schon mal für jede Hilfe!

mod edit: +[OT]
amne
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Fri Nov 26, 2004 8:28 pm    Post subject: Re: bash problem: permission denied Reply with quote

fisch wrote:
wahrscheinlich ist irgendwo etwas mit den (zugriffs-)rechten falsch konfiguriert..
Vermutlich.
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Fri Nov 26, 2004 9:43 pm    Post subject: Reply with quote

Also scripte müssen zum ausführen das recht "execute" (x) beinhalten. Also schau mal ob das Recht an deinen Scripten gestzt ist.

Mfg

Sino
Back to top
View user's profile Send private message
platinumviper
l33t
l33t


Joined: 12 Feb 2004
Posts: 649
Location: Munich, Germany

PostPosted: Sat Nov 27, 2004 12:21 am    Post subject: Re: bash problem: permission denied Reply with quote

fisch wrote:
Quote:
bash-2.05b# /bin/bash ./thunderbird
./thunderbird: ./run-mozilla.sh: /bin/sh: bad interpreter: Permission denied

Was kommt denn bei
Code:
ls -l /bin/bash /bin/sh
und
Code:
file /bin/bash /bin/sh
raus?

@SinoTech:
Wenn ein Script als Parameter seines Interpreters angegeben wird, muss es nicht ausführbar sein. Nur wenn es unter seinem Namen ausführbar sein soll muss das Executable-Bit gesetzt sein, in der ersten Zeile sollte dann als Kommentar der Interpreter stehen, z.B.
Code:
#! /bin/bash


platinumviper
_________________
No money back garantee. In case of problems, don't call us, we call you.
Back to top
View user's profile Send private message
DerMojo
Guru
Guru


Joined: 14 Aug 2003
Posts: 395
Location: Germany

PostPosted: Sat Nov 27, 2004 12:23 am    Post subject: Reply with quote

Hi!

Sieht so aus als wäre das Dateisystem mit "noexec" gemountet. Das erkennst du, wenn du einfach "mount" eingibst.
Dann brauchst du nur noch die fstab zu ändern...

Daniel
_________________
To err is human, to forgive, beyond the scope of the Operating System.
Back to top
View user's profile Send private message
fisch
n00b
n00b


Joined: 26 Nov 2004
Posts: 2
Location: Zurich

PostPosted: Sat Nov 27, 2004 11:20 am    Post subject: Reply with quote

DerMojo wrote:


Sieht so aus als wäre das Dateisystem mit "noexec" gemountet.


das war es wohl.
habe nun das home-filesystem mit 'exec' gemountet und es hatt bestens funktioniert.

danke für eure schnelle Hilfe... :D :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum 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