chroot

Install a deb inside a chroot.

I have (or soon will have) a puppet script that installs a number of packages via apt-get. I need them to be accessible from inside a chroot. Is there an easy way to set that up? My first thought is to run apt-get from inside the chroot but that seems both messy and to be a potential problem as how can I be sure I've completely removed ...

Why isn't chroot working?

As an alternately to my real question: does anyone know of a simple command line tool to make a chroot jail? I'm thinking something that will run a command and copy everything it needs to run into a given directory. I saw some directions for a tool but it had config files and seemed to be expecting me to launch it from X and neither of t...

How run in a chroot jail not as root and without sudo?

I'm setting up a minimal chroot and want to avoid having sudo or su in it but still run the my processes as non-root. This is a bit of a trick as chroot requiers root. I could write a program that does this that would look something like: uid = LookupUser(args[username]) // no /etc/passwd in jail chroot(args[newroot]) cd("/") setuids(u...

Is it possible to run dhcpd3 as non-root user in a chroot jail?

Hi everyone. I would like to run dhcpd3 from a chroot jail on Debian Lenny. At the moment, I can run it as root from my jail. Now I want to do this as non-root user (as "-u blah -t /path/to/jail" Bind option). If I start my process like this : start-stop-daemon --chroot /home/jails/dhcp --chuid dhcp \ --start --pidfile /home/jails/d...