|
From: | Jon Gullidge |
Subject: | RE: [Jailkit-users] Error parsing jk_lsh.ini |
Date: | Sun, 15 Nov 2009 12:47:12 +0000 |
Do you want to use jk_lsh or bash as your shell? I'd suggest changing /usr/local/chroot/etc/passwd And changing the shell from jk_lish to /bin/bash Just make sure you init basicshell: jk_init -j /usr/local/chroot basicshell HTH :) Date: Sat, 14 Nov 2009 18:07:11 -0600 From: address@hidden To: address@hidden Subject: [Jailkit-users] Error parsing jk_lsh.ini 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 Any clues are greatly appreciated. Thanks, Art View your other email accounts from your Hotmail inbox. Add them now. |
[Prev in Thread] | Current Thread | [Next in Thread] |