Click to See Complete Forum and Search --> : Jailkit Problem


OneEye
03-27-2006, 11:08 AM
What I'm trying to do is chroot an sftp account and I can't seem to get it to work properly. My setup of the account is as follows.

/var/www/html/jail is my jail root and it has the following directories in it dev,etc,home,lib,usr,var xlan

The users jail area is /var/ww/html/jail/xlan


my /etc/passwd looks like.

jake6937:x:504:504::/var/www/html/jail/./xlan:/usr/sbin/jk_chrootsh

my /var/www/html/jail/etc/passwd looks like

root:x:0:0:root:/root:/bin/bash
jake6937:x:504:504::/xlan:/usr/sbin/jk_lsh

The service is running:

nobody 20458 0.0 0.0 1664 188 ? Ss Mar24 0:00 /usr/sbin/jk_so

But I get this error message when I try to connect

Mar 27 08:06:41 localhost sshd(pam_unix)[2724]: session opened for user jake6937 by (uid=0)
Mar 27 08:06:41 localhost jk_chrootsh[2725]: abort, path /var/www/html/jail/./xlan does not have group 504
Mar 27 08:06:41 localhost sshd(pam_unix)[2724]: session closed for user jake6937


At this point any comments or suggestions would be greatly appreciated.