Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[BASH] Permission denied (non résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
pititjo
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 245
Location: Paris (France)

PostPosted: Fri Nov 12, 2004 7:46 pm    Post subject: [BASH] Permission denied (non résolu) Reply with quote

Je tente de lancer un script bash et j'ai droit à un splendide message d'erreur :
Quote:
bash: scripts/portlog-info: /bin/bash: bad interpreter: Permission denied


Cela ne vient pas du script qui marchait très bien avant que je ne réinstalle mon systeme (je n'avait rien à faire alors...) et qui marche quand je le lance avec :
Code:
sh portlog-info -i


J'ai déjà regarder dans les archives du forum et après m'être assuré que je n'avais pas compiler les modules de sécurité dans mon kernel, que bash existait bien (je l'ai même reemerger au cas où) et tenter 2 ou 3 autres trucs dont je ne me souvient plus, je me retrouve bien dépourvu. C'est pas que mettre sh avant tous les scripts bash n'est pas terrible mais bon, la petite ligne tout en haut '#:/bin/bash) c'est bien pour que se soit automatique...

Si quelqu'un pouvait m'aider.... :roll:

PS J'ai lu qu'il fallait refaire le bootstrap, dite moi que c'est pas ça pitié, c'est trop long !!!
re PS merci à TLG pour ce beau script qu'est portlog-info
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Fri Nov 12, 2004 7:49 pm    Post subject: Reply with quote

verifie 2 choses :
Code:
ls -l scripts/portlog-info
est il bien en exec ?

autrement, quels sont les arguments de montage de la partition sur laquelle tu tentes de lancer le script ?

essaye en rajoutant
Code:
,exec
a la ligne des options dans le fstab !
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
pititjo
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 245
Location: Paris (France)

PostPosted: Fri Nov 12, 2004 7:57 pm    Post subject: Reply with quote

Alors...
Les options de la partition / dans le fstab étaient (enfin était) :
Quote:
noatime

J'ai ajouter ,exec et j'ai rebooter mais ça ne marche toujours pas :cry:
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Fri Nov 12, 2004 7:59 pm    Post subject: Reply with quote

moi j'ai simplement
Code:
defaults
Autrement il est bien en mode +x ? (voir avec ls -l)
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
pititjo
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 245
Location: Paris (France)

PostPosted: Fri Nov 12, 2004 8:03 pm    Post subject: Reply with quote

Je vient de changer l'option dans mon fstab, je redemarre et je vois.
En attendant :
Quote:
bash-2.05b# ls -l /bin/bash
-rwxr-xr-x 1 root root 626480 Nov 12 20:22 /bin/bash

et
Quote:
bash-2.05b# ls -l scripts/portlog-info
-rwxr-xr-x 1 root root 10084 Nov 3 16:07 scripts/portlog-info


Vraiment, je vois pas le problème.

[edit]Après reboot avec defaults dans le fstab ça ne marche toujours pas :cry: [/edit]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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