So, is there a good way to get some feedback when I am in the chroot shell? It would be great if when I get into the chroot I could see logs telling me what errors might be occurring. I am just trying to figure out a good way to debug this issue.
Also, does anyone know of a good tutorial other than the one listed below? Do I only need the etc/passwd and etc/group directories in the /usr/jail directory?
Bob Byron wrote:
Has anyone succeeded in making a chroot'd shell in Fedora?
I have followed the instructions in the following document to try and make a chroot'd environment. It has potential, but I cannot get a chroot command that will work.
Here is the howto I followed: http://www.tjw.org/chroot-login-HOWTO/
But, when I "chroot /usr/jail", the environment does not see the /usr/jail/etc/passwd or /usr/jail/etc/group files. If I do a "ls -l" to get a long directory listing, I get the follwing:
drwxr-xr-x 2 0 0 4096 Jan 18 16:12 bin drwxr-xr-x 2 0 0 4096 Jan 15 00:38 dev drwxr-xr-x 2 0 0 4096 Jan 18 16:09 etc drwxr-xr-x 3 0 0 4096 Jan 15 00:34 lib drwxrwxrwt 2 0 0 4096 Jan 18 05:23 tmp drwxr-xr-x 3 0 0 4096 Jan 18 05:24 usr ^Owner ^Group
Notice the UID's and the GID's are displayed instead of the actual names.
So, why does Fedora not see the passwd and group files?