Who? What? Why?
Home gateway for Søren Thing.
create_chroot_home
create_chroot_home is a shell script I wrote to make it
easier (and less error prone) for me to set up a chroot login on
my OpenBSD machine.
Prerequisites: OpenBSD (tested on 3.1), bash and chrsh. To do the actual chroot I use Aaron Gifford's chrsh, that Ben Goren has made a port for. Please see his comments here. Unfortunately Mr. Goren's port didn't exactly fit my purpose, so I have made a small patch against it, that changes three things:
To use my script download the following three files and place them in /root/bin (or change the script to reflect your choice). Then review the configuration variables (paths) in the top of the script. Install chrsh and run /root/bin/create_chroot_home. Voila!
To make sure the binaries in the chroots are updated after "cvs up" and a recompilation I use update_chroot_homes (a script).
![]() Thanks goes to the skilled, determined, helpful and (circumstances considered) friendly OpenBSD crew and mailinglists. |