Greetings, I am trying to set up jail kit and having little success.
The programs appear to have built and installed ok. (Ubuntu 9.10 desktop 64bit)
I followed the example for creating the jail dir, etc.
The fact that jk_addjailuser (per the example) told me I should be using jk_jailuser was indeed amusing. I managed to get to the point of attempting to access the jailed user. In syslog I get this error: Nov 14 18:01:08 localhost jk_chrootsh[21642]: now entering jail /usr/local/chroot for user zenptest (1003)
Nov 14 18:01:08 localhost jk_lsh[21642]: jk_lsh version 2.10, started Nov 14 18:01:08 localhost jk_lsh[21642]: did neither find a section 'zenptest', nor 'group zenptest' nor 'DEFAULT' in configfile /etc/jailkit/jk_lsh.ini
Nov 14 18:01:08 localhost sshd[21582]: pam_unix(sshd:session): session closed for user zenptest
There is no output to /var/log/daemon.log.
Here are the commands I used to create the jail: (user is zenptest)
./configure make sudo make install mkdir /usr/local/chroot chown root:root /usr/local/chroot chmod 0755 /usr/local/chroot jk_init -j /usr/local/chroot jk_lsh jk_init -j /usr/local/chroot rsync jk_jailuser --jail=/usr/local/chroot zenptest --verbose
vi /usr/local/chroot/etc/jailkit/jk_lsh.ini (...see file content later in this mesg...) killall jk_socketd jk_socketd tail -F /var/log/daemon.log tail -F /var/log/auth.log # in a separate window, of course
Here is the /etc/jailkit/jk_lsh.ini that cannot be parsed: [zenptest] executables=/usr/bin/rsync [group zenptest] executables=/usr/bin/rsync