Hola a todos:

�Alguien sabe como funciona el comando chroot?. 

#chroot --help

Usage: chroot [OPTION] NEWROOT [COMMAND...]
   or:  chroot OPTION
Run COMMAND with root directory set to NEWROOT.

      --help       display this help and exit
      --version    output version information and exit

If no command is given, run ``${SHELL} -i'' (default: /bin/sh).

#cd /home/restringido

#ls home/restringido

bin
dev
etc
lib
pruebas
usr

#chroot /home/restringido /bin/bash

chroot: cannot execute /bin/bash: No such file or directory

        Siempre obtengo el mismo resultado: No such file or directory. Lo he
intentado de todas las maneras posibles, creando un hardlink de /bin/bash a
/home/restringido/bin/bash, copiandolo, utilizado rutas absolutas, relativas,
pero solo funciona cuando le pasas / como nuevo directorio raiz, con lo cual
no le veo mucha utilidad al comando.

Un saludo

-- 
-----------------------------
F�lix Herrera Alonso

[EMAIL PROTECTED]
[EMAIL PROTECTED]
-----------------------------

Responder a