PDA

View Full Version : jailkit problems


PsyGhost
2004-08-20, 10:41 AM CDT
I installed jailkit (chroot jail for SSH and other services) and followed this guide
http://olivier.sessink.nl/jailkit/howtos_ssh_only.html

when i try to login as the jailed use I get this:

[root@Roey-D roey]# ssh johni@127.0.0.1
johni@127.0.0.1's password:
/usr/X11R6/bin/xauth: timeout in locking authority file /home/chrootusers/home/johni/.Xauthority
Connection to 127.0.0.1 closed.


I can login fine as a normal user. Any suggestions? or are there any other ways to chroot jail an SSH user?

PsyGhost
2004-08-21, 01:57 PM CDT
Never mind, managed to solve it, please lock.

kq78
2005-04-06, 04:10 PM CDT
How about this (from /var/log/messages):

Mar 8 00:56:26 web jk_chrootsh[7603]: WARNING: could not execute shell /bin/bash for user 506:100

So... Where to put more rights... ??

I've already tried to use jk_lsh with configs for "jailkit/jk_lsh.ini" .. same result!

kq78
2005-04-08, 02:26 AM CDT
How about this (from /var/log/messages):

Mar 8 00:56:26 web jk_chrootsh[7603]: WARNING: could not execute shell /bin/bash for user 506:100

So... Where to put more rights... ??

I've already tried to use jk_lsh with configs for "jailkit/jk_lsh.ini" .. same result!

I asked Olivier and he adjusted to check libraries with "ldd /bin/bash"...
In my case "/lib/ld-linux.so.2" was missing...

But now it works just fine... :)