View previous topic :: View next topic |
Author |
Message |
Ascodas Apprentice
Joined: 18 Nov 2004 Posts: 263
|
Posted: Tue Jan 13, 2009 2:05 pm Post subject: [CHROOT] Chroot 32 bits sur amd64 coince [Résolu] |
|
|
Salut et bonne année à tous,
J'essaye d'installer un chroot 32 bits sur mon amd64 et à l'étape du chroot ca coince :
Code: | [root@amd64 ]$ linux32 chroot /mnt/Musique/gentoo32/ /bin/bash
chroot: ne peut exécuter la commande `/bin/bash': Permission non accordée
[root@amd64 ]$ chroot /mnt/Musique/gentoo32/ /bin/bash
chroot: ne peut exécuter la commande `/bin/bash': Permission non accordée |
Quelques infos :
Code: | [root@amd64 ]$ ll /bin/bash
-rwxr-xr-x 1 root root 759K jan 5 19:47 /bin/bash
[root@amd64 ]$ cat /etc/shells
# /etc/shells: valid login shells
/bin/bash
/bin/csh
/bin/esh
/bin/fish
/bin/ksh
/bin/sash
/bin/sh
/bin/tcsh
/bin/zsh
/bin/false
[root@amd64 ]$ |
Merci.
PS : le packet setarch est il obsolète ? je ne le trouve plus dans portage.
Last edited by Ascodas on Tue Jan 13, 2009 4:06 pm; edited 1 time in total |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 13, 2009 2:25 pm Post subject: |
|
|
Salut,
Est-ce que ton /mnt/Musique a les droits d'exécution ? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
Ascodas Apprentice
Joined: 18 Nov 2004 Posts: 263
|
Posted: Tue Jan 13, 2009 2:28 pm Post subject: |
|
|
C'est ce que je regardais à l'instant :
la partition est montée par fstab avec les options : user,rw et defaults qui normalement inclus le exec.
merci |
|
Back to top |
|
|
Bapt Veteran
Joined: 14 Apr 2003 Posts: 1152 Location: Paris
|
Posted: Tue Jan 13, 2009 2:36 pm Post subject: |
|
|
Que donne
Code: | ls -l /mnt/Musique/gentoo32/bin/bash |
? |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8710 Location: ~Brussels - Belgique
|
Posted: Tue Jan 13, 2009 2:42 pm Post subject: |
|
|
vérifier aussi le support 32 bits dans le kernel _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
Ascodas Apprentice
Joined: 18 Nov 2004 Posts: 263
|
Posted: Tue Jan 13, 2009 2:43 pm Post subject: |
|
|
Bapt wrote: | Que donne
Code: | ls -l /mnt/Musique/gentoo32/bin/bash |
? |
Voila :
Code: | [root@amd64 ]$ ls -la /mnt/Musique/gentoo32/bin/bash
-rwxr-xr-x 1 root root 667532 avr 26 2008 /mnt/Musique/gentoo32/bin/bash
[root@amd64 ]$ |
|
|
Back to top |
|
|
kwenspc Advocate
Joined: 21 Sep 2003 Posts: 4954
|
Posted: Tue Jan 13, 2009 3:35 pm Post subject: Re: [CHROOT] Chroot 32 bits sur amd64 coince |
|
|
Ascodas wrote: |
Code: | [root@amd64 ]$ linux32 chroot /mnt/Musique/gentoo32/ /bin/bash
chroot: ne peut exécuter la commande `/bin/bash': Permission non accordée
[root@amd64 ]$ chroot /mnt/Musique/gentoo32/ /bin/bash
chroot: ne peut exécuter la commande `/bin/bash': Permission non accordée |
|
chroot est une commande que seul le user root peut utiliser. Apparament tu ne t'es pas loggés en root (ton prompt en $ au lieu de #) _________________ membre officieux du SAV Ati GEntoo |
|
Back to top |
|
|
Ascodas Apprentice
Joined: 18 Nov 2004 Posts: 263
|
Posted: Tue Jan 13, 2009 3:58 pm Post subject: Re: [CHROOT] Chroot 32 bits sur amd64 coince |
|
|
kwenspc wrote: | Ascodas wrote: |
Code: | [root@amd64 ]$ linux32 chroot /mnt/Musique/gentoo32/ /bin/bash
chroot: ne peut exécuter la commande `/bin/bash': Permission non accordée
[root@amd64 ]$ chroot /mnt/Musique/gentoo32/ /bin/bash
chroot: ne peut exécuter la commande `/bin/bash': Permission non accordée |
|
chroot est une commande que seul le user root peut utiliser. Apparament tu ne t'es pas loggés en root (ton prompt en $ au lieu de #) |
Surement car c'est un screen ou bien un remote loggin, je ne sais pas a vrai dire pourquoi j'ai un $ mais je suis bien root.
Sinon c'est résolu, c'est le flag user dans fstab qui me rajoutait les options noexec,nosuid,nodev.
Merci à tous !!! |
|
Back to top |
|
|
|