/home/tnt/Desktop/chroot_ssh.sh + USER=toto + TAB_APP='/usr/sbin/chroot /bin/bash /bin/cat /bin/chmod /bin/chown /bin/cp /bin/grep /bin/gzip /bin/ls /bin/mkdir /bin/more /bin/mv /bin/rm /bin/tar /bin/nano /bin/ln' + REP=/home/tnt/chroot/toto/ + TMP=/tmp/chrootssh0 + TMP1=/tmp/chrootssh1.txt + '[' -z toto ']' + '[' -e /home/tnt/chroot/toto/ ']' + echo 'Effacement de /home/tnt/chroot/toto/' Effacement de /home/tnt/chroot/toto/ + rm -r /home/tnt/chroot/toto/ + mkdir -p /home/tnt/chroot/toto/ + '[' -a /tmp/chrootssh0 ']' + echo 'Effacement de /tmp/chrootssh0' Effacement de /tmp/chrootssh0 + rm /tmp/chrootssh0 + '[' -a /tmp/chrootssh1.txt ']' + for O in '$TAB_APP' + ldd /usr/sbin/chroot + awk '{ print $1 }' + read line + echo 'DEBUG première entrée: linux-gate.so.1 pour /usr/sbin/chroot' DEBUG première entrée: linux-gate.so.1 pour /usr/sbin/chroot ++ echo linux-gate.so.1 ++ awk '{print $1}' ++ cut -c0-1 + CarId=l + '[' l = / ']' + '[' l = l ']' ++ find / -iname linux-gate.so.1 ++ grep '^/lib/' + FD= ++ grep -v /tmp/chrootssh1.txt + ST='libc.so.6 /lib/ld-linux.so.2' + '[' -a '' ']' + echo 'librairie non trouver linux-gate.so.1 pour le programe /usr/sbin/chroot' librairie non trouver linux-gate.so.1 pour le programe /usr/sbin/chroot ++ grep -v /tmp/chrootssh1.txt + FD2= + '[' '!' -e linux-gate.so.1 ']' + '[' '!' -z ']' + echo 'entrée refusée linux-gate.so.1' entrée refusée linux-gate.so.1 + echo 'Suivant pour /usr/sbin/chroot numero de la boucle : ' Suivant pour /usr/sbin/chroot numero de la boucle : ++ expr + 1 + count=1 + echo 'DEBUG linux-gate.so.1' DEBUG linux-gate.so.1 + read line + count=0 + for O in '$TAB_APP' + ldd /bin/bash + awk '{ print $1 }' + read line + echo 'DEBUG première entrée: linux-gate.so.1 pour /bin/bash' DEBUG première entrée: linux-gate.so.1 pour /bin/bash