Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[chroot] plantage permision refusé(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
Dark-Water
n00b
n00b


Joined: 17 Jan 2005
Posts: 35

PostPosted: Tue Sep 20, 2005 2:28 pm    Post subject: [chroot] plantage permision refusé(résolu) Reply with quote

voila je pe pas faire un chroot sur pour me connecté sur ma ubuntu
voila ca que j'ai sur ma gentoo lorsque je veux faire chroot

Dark-Water ubuntu # chroot /mnt/ubuntu/
chroot: cannot run command `/bin/sh': Permission denied


je suis bien en root
Voila merci d'avance
_________________
Luc je suis ton frère ;-)


Last edited by Dark-Water on Tue Sep 20, 2005 5:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
Adrien
Advocate
Advocate


Joined: 13 Jul 2004
Posts: 2308
Location: Bretagne

PostPosted: Tue Sep 20, 2005 2:37 pm    Post subject: Re: [chroot] plantage permision refusé Reply with quote

Dark-Water wrote:
voila je pe pas faire un chroot sur pour me connecté sur ma ubuntu
voila ca que j'ai sur ma gentoo lorsque je veux faire chroot

Dark-Water ubuntu # chroot /mnt/ubuntu/
chroot: cannot run command `/bin/sh': Permission denied


je suis bien en root
Voila merci d'avance

Euh à tout hasard, que donne:
Code:
# ls -l /bin/sh
?
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Tue Sep 20, 2005 2:57 pm    Post subject: Re: [chroot] plantage permision refusé Reply with quote

Dark-Water wrote:
voila je pe pas faire un chroot sur pour me connecté sur ma ubuntu
voila ca que j'ai sur ma gentoo lorsque je veux faire chroot

Dark-Water ubuntu # chroot /mnt/ubuntu/
chroot: cannot run command `/bin/sh': Permission denied


je suis bien en root
Voila merci d'avance

Code:

mount -o bind /dev /mnt/ubuntu/dev
mount -o bind /proc /mnt/ubuntu/proc
Back to top
View user's profile Send private message
yuk159
Veteran
Veteran


Joined: 18 Apr 2003
Posts: 1802
Location: noumea ,nouvelle-caledonie

PostPosted: Tue Sep 20, 2005 3:10 pm    Post subject: Reply with quote

Et chroot /mnt/ubuntu /bin/bash ? ça donne quoi ?
_________________
The box said: "Requires Windows 98/2000/XP/NT, or better."
So, I installed LINUX!
Instagram
Back to top
View user's profile Send private message
Dark-Water
n00b
n00b


Joined: 17 Jan 2005
Posts: 35

PostPosted: Tue Sep 20, 2005 5:32 pm    Post subject: Reply with quote

Dark-Water ubuntu # ls -l /bin/sh
lrwxrwxrwx 1 root root 4 sep 19 16:01 /bin/sh -> bash


chroot /mnt/ubuntu /bin/bash c pareil

et
Dark-Water ubuntu # mount -o bind /dev /mnt/ubuntu/dev
Dark-Water ubuntu # mount -o bind /proc /mnt/ubuntu/proc
Dark-Water ubuntu # chroot /mnt/ubuntu/ /bin/sh ca change rien


Autre idées ??
_________________
Luc je suis ton frère ;-)
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1902
Location: 127.0.0.1

PostPosted: Tue Sep 20, 2005 5:34 pm    Post subject: Reply with quote

Ta partition /mnt/ubuntu, tu l'as montée comment ? avec quelles options ?
Back to top
View user's profile Send private message
_droop_
l33t
l33t


Joined: 30 May 2004
Posts: 957

PostPosted: Tue Sep 20, 2005 5:35 pm    Post subject: Reply with quote

Dark-Water wrote:
Dark-Water ubuntu # ls -l /bin/sh
lrwxrwxrwx 1 root root 4 sep 19 16:01 /bin/sh -> bash


Bonjour,

Je crois que tu aurais du faire
Code:
ls -l bin/sh
, puis vu que sh est un lien, un
Code:
ls -l bin/bash
aurait pu être aussi judicieux.

Sinon j'ai pas trop d'idée :)
Back to top
View user's profile Send private message
Dark-Water
n00b
n00b


Joined: 17 Jan 2005
Posts: 35

PostPosted: Tue Sep 20, 2005 5:37 pm    Post subject: Reply with quote

mount /mnt/ubuntu


et ds le fstab

/dev/hda7 /mnt/ubuntu ext3 noauto,user
0 0
_________________
Luc je suis ton frère ;-)
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1902
Location: 127.0.0.1

PostPosted: Tue Sep 20, 2005 5:43 pm    Post subject: Reply with quote

Démontes ta partition, et remontes la sans l'option user.
Back to top
View user's profile Send private message
Dark-Water
n00b
n00b


Joined: 17 Jan 2005
Posts: 35

PostPosted: Tue Sep 20, 2005 5:52 pm    Post subject: Reply with quote

c bon merci c'était ca

A++
_________________
Luc je suis ton frère ;-)
Back to top
View user's profile Send private message
kopp
Advocate
Advocate


Joined: 09 Apr 2004
Posts: 2885
Location: Grenoble, France

PostPosted: Tue Sep 20, 2005 9:08 pm    Post subject: Reply with quote

Tu peux laisser l'option user, mais il faut mettre exec après, car l'option user(s) implique noexec (entre autres) cf man fstab/mount je sais plus

EDIT : voilà
man mount wrote:

dev Interpréter les fichiers spéciaux de
périphériques présents sur le systAème.

exec Permettre l'exécution de fichiers binaires.

user Autoriser les utilisateurs ordinaires A monter le
système de fichiers. Le nom de l'utilisateur est
noté dans mtab pour qu'il puisse le démonter
ensuite. Ceci entraîne l'utilisation des options
noexec, nosuid, et nodev (A moins qu'elles ne soient
explicitement surchargées, comme dans une ligne
d'option user,exec,dev,suid).

users Permettre A tous les utilisateurs de monter et démon-
ter le système de fichiers. Cette option implique les
options noexec, nosuid, et nodev (sauf s'il y a une sur-
charge par une option ultérieure, comme sur la ligne
users,exec,dev,suid).
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