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?