Originally Posted by Rookie1337
OK. Can you explain that for me. I looked at the man file and it says that the default directory is /bin/sh. But that directory doesn't exist. Does this mean that when you run something through chroot it creates that directory and there's nothing in it? Sorry I'm really not that bright with security.
chroot is a command afaik, that is apart of bash.
its not really a "security" thing, i use it mainly to access boinked installs of linux, or to perform updates without having to reboot into that distro...
i was just saying that is one thing you could do, as it is a self contained "prison", nothing inside the chroot could "break out" afaik and infect your system, so any command or program you run inside the chroot, is only going to effect that environment.
lots of people i know that use gentoo, use a gentoo environment to do the initial setup/install of it, but i know others who are paranoid enough to go thru the trouble of setting up a second install, just to use in this manner, running their browser, among other things, thru the chroot, for those "just in case" moments they say.