Permission denied, alors que ...?

pristella Messages postés 859 Statut Contributeur -  
crabs Messages postés 909 Statut Membre -
bonsoir,

je suis sur kubuntu et je souhaite installer un firewall (firestarter).

J'ai télécharger les sources que j'ai installé dans une partition /home-principal (partition commune à mes 3 distrib : mandrake,kubuntu et debian).

Au moment de faire le ./configure, un message d'erreur apparait 'permission denied'. Pour être plus explicite, voilà ma démarche :

pristella@pristella:/home-principal/firewall/firestarter-0.9.3$ ./configure
bash: ./configure: /bin/sh: bad interpreter: Permission non accordée
pristella@pristella:/home-principal/firewall/firestarter-0.9.3$


j'essaie avec un 'sudo ./configure' -----> même message ?

je verifie les permissions :

pristella@pristella:/home-principal/firewall/firestarter-0.9.3$ ls -l
total 1508
-rwxrwxrwx 1 pristella pristella 272054 2004-04-26 20:37 aclocal.m4
-rwxrwxrwx 1 pristella pristella 61 2003-01-23 20:59 AUTHORS
-rwxrwxrwx 1 pristella pristella 498 2003-01-23 20:59 autogen.sh
-rwxrwxrwx 1 pristella pristella 7657 2004-05-03 17:55 ChangeLog
-rwxrwxrwx 1 pristella pristella 42037 2004-04-26 20:37 config.guess
-rwxrwxrwx 1 pristella pristella 2072 2004-04-26 20:37 config.h.in
-rwxrwxrwx 1 pristella pristella 30221 2004-04-26 20:37 config.sub
-rwxrwxrwx 1 pristella pristella 728790 2004-04-26 20:37 configure
-rwxrwxrwx 1 pristella pristella 1813 2004-04-24 15:14 configure.in
-rwxrwxrwx 1 pristella pristella 15127 2003-01-23 20:59 COPYING
-rwxrwxrwx 1 pristella pristella 856 2003-01-23 20:59 CREDITS
-rwxrwxrwx 1 pristella pristella 13866 2003-10-07 05:06 depcomp
-rwxrwxrwx 1 pristella pristella 3039 2004-05-03 17:45 firestarter.desktop
-rwxrwxrwx 1 pristella pristella 297 2004-04-25 00:56 firestarter.desktop.in
-rwxrwxrwx 1 pristella pristella 11614 2004-05-03 17:54 firestarter.schemas.in
-rwxrwxrwx 1 pristella pristella 10147 2004-05-03 17:45 firestarter.spec
-rwxrwxrwx 1 pristella pristella 10151 2004-05-03 17:30 firestarter.spec.in
-rwxrwxrwx 1 pristella pristella 7505 2003-01-23 20:59 INSTALL
-rwxrwxrwx 1 pristella pristella 7122 2003-10-07 05:06 install-sh
-rwxrwxrwx 1 pristella pristella 10489 2004-04-26 20:37 intltool-extract.in
-rwxrwxrwx 1 pristella pristella 22255 2004-04-26 20:37 intltool-merge.in
-rwxrwxrwx 1 pristella pristella 22353 2004-04-26 20:37 intltool-update.in
-rwxrwxrwx 1 pristella pristella 180339 2004-04-26 20:37 ltmain.sh
-rwxrwxrwx 1 pristella pristella 797 2004-04-24 15:17 Makefile.am
-rwxrwxrwx 1 pristella pristella 21518 2004-04-26 20:37 Makefile.in
-rwxrwxrwx 1 pristella pristella 10266 2003-10-07 05:06 missing
-rwxrwxrwx 1 pristella pristella 1988 2003-10-07 05:06 mkinstalldirs
-rwxrwxrwx 1 pristella pristella 2579 2003-01-23 20:59 netfilter.init
-rwxrwxrwx 1 pristella pristella 189 2003-01-23 20:59 NEWS
drwxrwxrwx 2 pristella pristella 4096 2004-05-03 18:03 pixmaps
drwxrwxrwx 2 pristella pristella 4096 2004-05-03 18:03 po
-rwxrwxrwx 1 pristella pristella 3678 2003-12-18 12:12 postinstall
-rwxrwxrwx 1 pristella pristella 1619 2003-01-23 20:59 README
drwxrwxrwx 2 pristella pristella 4096 2004-05-03 18:03 scripts
drwxrwxrwx 3 pristella pristella 4096 2004-05-03 18:03 src
-rwxrwxrwx 1 pristella pristella 531 2003-01-23 20:59 TODO
pristella@pristella:/home-principal/firewall/firestarter-0.9.3</ital

Comme tout semble en ordre, je ne comprend pas. Le propriétaire c'est bien moi 'pristella' ; j'ai les permission sur les fichiers .

Par contre si je copie le tarball dans le /home/pristella de kubuntu et que je commence la procedure d'install, ça fonctionne !!!!

Est-ce que quelqu'un pourrait m'eclairer car je ne comprend pas pourquoi, j'ai ce message (permission denied)sur ma partition /home-principal alors que je suis le propriétaire du repertoire et que j'ai les permissions 'normalement'

merci d'avance

A+

11 réponses

  1. kmf31 Messages postés 1564 Statut Contributeur 501
     
    Ton /home-principal est bien une partition ext3 et non fat ?

    Si c'est fat c'est ``normal'', disons plausible, car les scripts de configure etc. dependent d'un certain nombre de proprietes d'ext3.

    Si c'est ext3 est-ce que le(s) repertoire(s) au dessus ont aussi le bon proprietaire pristella (sinon a changer avec "chown pristella:pristella ...") ? Ca concerne notamment le firestarter-0.9.3 et aussi le firewall. Il faut aussi que ces repertoires soient en rwx pour toi. Il est possible que tu possedes tous les fichiers dans le firestarter-0.9.3 mais pas ce repertoire lui meme avec l'effet que tu n'as pas le droit de creer de nouveaux fichiers (et le ./configure cree plein des fichiers!!). Il faut savoir que le tar deballe defois des fichiers avec de proprietaires bizarres (notamment si c'est fait par root).
    0
  2. pristella Messages postés 859 Statut Contributeur 74
     
    bonjour kmf,

    la partition est en ext3 et les permissions semblent bonnes :

    pristella@pristella:/$ cd /
    pristella@pristella:/$ ls -l
    total 96
    drwxr-xr-x 2 root root 4096 2005-05-07 00:21 bin
    drwxr-xr-x 3 root root 4096 2005-05-12 21:01 boot
    lrwxrwxrwx 1 root root 11 2005-05-06 00:27 cdrom -> media/cdrom
    drwxr-xr-x 26 root root 4096 2005-05-18 22:17 debian
    drwxr-xr-x 14 root root 15020 2005-05-19 22:09 dev
    drwxrwxrwx 8 root root 16384 1970-01-01 01:00 donneesXP
    drwxr-xr-x 97 root root 4096 2005-05-19 23:11 etc
    drwxr-xr-x 3 root root 4096 2005-05-06 00:34 home
    drwxrwxrwx 5 pristella root 4096 2005-05-19 20:17 home-principal
    drwxr-xr-x 2 root root 4096 2005-05-06 00:28 initrd
    lrwxrwxrwx 1 root root 28 2005-05-12 21:01 initrd.img -> boot/initrd.img-2.6.10-5-686
    lrwxrwxrwx 1 root root 28 2005-05-06 00:29 initrd.img.old -> boot/initrd.img-2.6.10-5-386
    drwxr-xr-x 15 root root 4096 2005-05-06 00:42 lib
    drwx------ 2 root root 4096 2005-05-19 21:27 lost+found
    drwxr-xr-x 21 root root 4096 2005-05-19 18:09 mandriva
    drwxr-xr-x 5 root root 4096 2005-05-06 00:27 media
    drwxr-xr-x 3 root root 4096 2005-05-06 00:54 mnt
    drwxr-xr-x 2 root root 4096 2005-05-06 00:28 opt
    dr-xr-xr-x 93 root root 0 2005-05-19 22:08 proc
    drwxr-xr-x 12 root root 4096 2005-05-19 19:40 root
    drwxr-xr-x 2 root root 4096 2005-05-06 00:36 sbin
    drwxr-xr-x 2 root root 4096 2005-05-06 00:28 srv
    drwxr-xr-x 10 root root 0 2005-05-19 22:08 sys
    drwxrwxrwt 13 root root 4096 2005-05-19 22:51 tmp
    drwxr-xr-x 12 root root 4096 2005-05-06 00:28 usr
    drwxr-xr-x 13 root root 4096 2005-05-06 00:28 var
    lrwxrwxrwx 1 root root 25 2005-05-12 21:01 vmlinuz -> boot/vmlinuz-2.6.10-5-686
    lrwxrwxrwx 1 root root 25 2005-05-06 00:29 vmlinuz.old -> boot/vmlinuz-2.6.10-5-386
    dr-xr-xr-x 1 root root 4096 2005-05-13 19:22 windowsXP
    pristella@pristella:/$


    pristella@pristella:/home-principal$ ls -l
    total 8
    drwxrwxrwx 3 pristella pristella 4096 2005-05-19 20:29 firewall
    drwxrwxr-x 3 501 501 4096 2005-05-17 21:06 rt2500
    pristella@pristella:/home-principal$


    Ca semble en ordre ....
    0
  3. fozzie
     
    tu peux déjà changer le groupe de ton répertoire, il ne devrait pas être root
    0
  4. kmf31 Messages postés 1564 Statut Contributeur 501
     
    Que donne ca ?
    ls -ld /home-principal/firewall/firestarter-0.9.3


    le plus important c'est le dernier le "firestarter-0.9.3".
    Deja l'autre repertoire "rt2500" a un proprietaire "501" qui n'existent pas chez toi.
    0
  5. Vous n’avez pas trouvé la réponse que vous recherchez ?

    Posez votre question
  6. fozzie
     
    et vérifies les droit de /home-principal/firewall
    nous ne l'avons pas
    0
  7. fozzie
     
    je ne connais pas ben linux (seulement unix) mais ça m'étonnerait que tu puisses installer un firwall sans être "root"
    0
    1. kmf31 Messages postés 1564 Statut Contributeur 501
       
      Pour l'instant il s'agit simplement de la compilation dans un repertoire quelconque et ca doit marcher en tant qu'utilisateur simple a condition d'avoir les bons permissions de fichiers. Apres pour l'installation avec "make install" et effectivement aussi pour lancer le firestarter il va falloir etre root.
      0
  8. pristella Messages postés 859 Statut Contributeur 74
     
    voilà pour la commande :

    pristella@pristella:~$ ls -ld /home-principal/firewall/firestarter-0.9.3
    drwxrwxrwx 6 pristella pristella 4096 2004-05-03 18:03 /home-principal/firewall/firestarter-0.9.3
    pristella@pristella:~$


    Deja l'autre repertoire "rt2500" a un proprietaire "501" qui n'existent pas chez toi.


    en fait ce repertoire a été crée lorsque j'etais sur mandrake pour installer ma WIFI.

    Le repertoire /home-principal a été monté sur les 3 distrib.

    et vérifies les droit de /home-principal/firewall
    nous ne l'avons pas

    [


    pristella@pristella:~$ cd /home-principal
    pristella@pristella:/home-principal$ ls -l
    total 8
    drwxrwxrwx 3 pristella pristella 4096 2005-05-19 20:29 firewall
    drwxrwxr-x 3 501 501 4096 2005-05-17 21:06 rt2500
    pristella@pristella:/home-principal$ cd /home-principal/firewall
    pristella@pristella:/home-principal/firewall$ ls -l
    total 1616
    drwxrwxrwx 6 pristella pristella 4096 2004-05-03 18:03 firestarter-0.9.3
    -rw-r--r-- 1 pristella pristella 1071241 2005-05-19 20:28 firestarter-0.9.3.tar.gz
    -rw-r--r-- 1 pristella pristella 568712 2005-05-19 20:17 firestarter_1.0.3-1.1_i386.deb
    pristella@pristella:/home-principal/firewall$

    u peux déjà changer le groupe de ton répertoire, il ne devrait pas être root

    oui, alors là il faut que je retrouve la commande, je vais chercher dans mes notes.
    0
  9. pristella Messages postés 859 Statut Contributeur 74
     
    bonjour,

    bon , j'ai toujours le même problème. De plus je ne retrouve plus la commande pour mettre le repertoire qui est en groupe root en pristella ??

    drwxrwxrwx 5 pristella root 4096 2005-05-19 20:17 home-principal

    Je crois qu'avoir une partition home-principal commun à mes 3 distrib n'est pas une très bonne idée ?
    0
  10. kmf31 Messages postés 1564 Statut Contributeur 501
     
    tu peux faire (en root) soit:
    chgrp pristella /home-principal

    ou soit:
    chown pristella:pristella /home-principal

    (ou avec root:root pour l'operation inverse, avec chown le syntax est: "chown user:groupe ...")
    0
  11. pristella Messages postés 859 Statut Contributeur 74
     
    Bonjour,

    merci kmf pour ton aide. J'ai retrouvé la commande juste avant de voir ton message.

    Malheureusement le problème reste le même , regarde :

    pristella@pristella:/$ chgrp pristella /home-principal
    pristella@pristella:/$ ls -l
    total 96
    drwxr-xr-x 2 root root 4096 2005-05-07 00:21 bin
    drwxr-xr-x 3 root root 4096 2005-05-12 21:01 boot
    lrwxrwxrwx 1 root root 11 2005-05-06 00:27 cdrom -> media/cdrom
    drwxr-xr-x 26 root root 4096 2005-05-18 22:17 debian
    drwxr-xr-x 13 root root 15000 2005-05-21 21:03 dev
    drwxrwxrwx 8 root root 16384 1970-01-01 01:00 donneesXP
    drwxr-xr-x 97 root root 4096 2005-05-21 20:55 etc
    drwxr-xr-x 3 root root 4096 2005-05-06 00:34 home
    drwxrwxrwx 5 pristella pristella 4096 2005-05-19 20:17 home-principal
    drwxr-xr-x 2 root root 4096 2005-05-06 00:28 initrd
    lrwxrwxrwx 1 root root 28 2005-05-12 21:01 initrd.img -> boot/initrd.img-2.6.10-5-686
    lrwxrwxrwx 1 root root 28 2005-05-06 00:29 initrd.img.old -> boot/initrd.img-2.6.10-5-386
    drwxr-xr-x 15 root root 4096 2005-05-06 00:42 lib
    drwx------ 2 root root 4096 2005-05-19 21:27 lost+found
    drwxr-xr-x 21 root root 4096 2005-05-21 20:54 mandriva
    drwxr-xr-x 5 root root 4096 2005-05-06 00:27 media
    drwxr-xr-x 3 root root 4096 2005-05-06 00:54 mnt
    drwxr-xr-x 2 root root 4096 2005-05-06 00:28 opt
    dr-xr-xr-x 102 root root 0 2005-05-21 22:54 proc
    drwxr-xr-x 12 root root 4096 2005-05-19 19:40 root
    drwxr-xr-x 2 root root 4096 2005-05-06 00:36 sbin
    drwxr-xr-x 2 root root 4096 2005-05-06 00:28 srv
    drwxr-xr-x 10 root root 0 2005-05-21 22:54 sys
    drwxrwxrwt 13 root root 4096 2005-05-21 21:00 tmp
    drwxr-xr-x 12 root root 4096 2005-05-06 00:28 usr
    drwxr-xr-x 13 root root 4096 2005-05-06 00:28 var
    lrwxrwxrwx 1 root root 25 2005-05-12 21:01 vmlinuz -> boot/vmlinuz-2.6.10-5-686
    lrwxrwxrwx 1 root root 25 2005-05-06 00:29 vmlinuz.old -> boot/vmlinuz-2.6.10-5-386
    dr-xr-xr-x 1 root root 4096 2005-05-20 20:04 windowsXP
    pristella@pristella:/$

    -------------------installation de firestarter-----------------------------------

    pristella@pristella:/home-principal/firewall/firestarter-0.9.3$ ./configure
    bash: ./configure: /bin/sh: bad interpreter: Permission non accordée
    pristella@pristella:/home-principal/firewall/firestarter-0.9.3$

    pristella@pristella:/home-principal/firewall/firestarter-0.9.3$ sudo ./configure
    Password:
    sudo: unable to execute ./configure: Permission denied
    pristella@pristella:/home-principal/firewall/firestarter-0.9.3$

    Je crois que je vais juste télécharger les sources de programme dans /home-principal puis copié le programme qui m'interesse dans le /home de la distrib parceque ça marche comme ça ??????

    Ca me permet au moins d'avoir les sources sur une partition ext3 indépendante.
    0
  12. crabs Messages postés 909 Statut Membre 507
     
    Salut,
    Fait un "ls -l /bin/sh", le message indique un pb à ce niveau-là
    Si c'est un lien symbolique fait la même chose sur lien
    Vérifie que tu as bien les droits d'exécution sur ces fichiers.
    0