jk_init(8) - Linux man page
Name
jk_init - a utility to quicky create functional jail directoriesSynopsis
jk_init jail section
jk_init -v -f jail section
Description
It is not an easy task to setup a jail (a changed root) in a functional way. If you want the user to be able to run cvs for example, it will not work to simply copy the cvs binary into the users jail. You will find that cvs needs libraries as well. Using ldd /usr/bin/cvs you can see all the libraries needed by cvs. Many of those libraries are actually symlinks, so you you have to copy both the library files and create new symlinks. Also cvs needs the /dev/null device. Finally you need to start cvs: you need a shell too. And the shell might need files like /etc/passwd and /etc/nsswitch.conf.
jk_init can do most of these things for you. There are many predefined sections in the configfile /etc/jailkit/jk_init.ini where you can simply choose one, and jk_init can copy all required files.
Limitations
Many unix like operating systems install files in different locations. jk_init has defaults taken from Debian and Ubuntu. It may not work on other platforms. Customizing jk_init.ini for your platform might be required.
Options
- -f --force
- Force overwriting of existing files
- -v --verbose
- Will give verbose output
- -c configfile --configfile=configfile
- Use alternative configfile
- -l --list
- List available sections in the config file
- -h --help
- The help screen
Files
/etc/jailkit/jk_init.iniSee Also
jailkit(8) jk_check(8) jk_chrootlaunch(8) jk_chrootsh(8) jk_cp(8) jk_init(8) jk_lsh(8) jk_list(8) jk_procmailwrapper(8) jk_socketd(8) ldd(1) mknod(1) ln(1) chmod(1) mkdir(1)
Copyright
Copyright (C) 2003, 2004, 2005, 2006, Olivier Sessink
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
