PDA

View Full Version : jailkit problems


PsyGhost
20th August 2004, 05:41 PM
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
21st August 2004, 08:57 PM
Never mind, managed to solve it, please lock.

kq78
6th April 2005, 11:10 PM
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
8th April 2005, 09:26 AM
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... :)

Monrovia Travel Photos - Ludwigsburg Travel Photos on Instagram - Vavatenina