jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] Disconnects when the shell starts


From: Olivier Sessink
Subject: Re: [Jailkit-users] Disconnects when the shell starts
Date: Thu, 15 May 2008 17:52:24 +0200
User-agent: Thunderbird 2.0.0.14 (X11/20080505)

Mathematical wrote:
Alright so thanks to your help I figured out that the logs are in
/var/log/messages. As you probably already know I'm some what new to linux
so bare with me. Here is the result of the command:

[log]
address@hidden cvsjail]# grep jk_ /var/log/* /var/log/messages:May 14 13:53:04 localhost jk_chrootsh[14199]: now entering jail /cvsjail for user cvsuser (502) /var/log/messages:May 14 13:59:31 localhost jk_chrootsh[14242]: now entering jail /cvsjail for user cvsuser (502) /var/log/messages:May 14 13:59:48 localhost jk_chrootsh[14246]: now entering jail /cvsjail for user cvsuser (502) /var/log/messages:May 15 08:27:59 localhost jk_socketd[14309]: version 2.5, listening on socket /cvsjail/dev/log with rates [1024:10240]/0.500000 /var/log/messages:May 15 08:31:53 localhost jk_chrootsh[14326]: now entering jail /cvsjail for user cvsuser (502) /var/log/messages:May 15 12:31:53 localhost jk_lsh[14326]: jk_lsh version
2.5, started /var/log/messages:May 15 12:31:53 localhost jk_lsh[14326]: did
neither find a section 'cvsuser', nor 'group cvsuser' nor 'DEFAULT' in
configfile /etc/jailkit/jk _lsh.ini /var/log/messages:May 15 08:46:37 localhost jk_socketd[14342]: version 2.5, listening on socket /cvsjail/dev/log with rates [1024:10240]/0.500000 /var/log/messages:May 15 08:47:06 localhost jk_socketd[14346]: version 2.5, listening on socket /cvsjail/dev/log with rates [1024:10240]/0.500000 [/log]

After looking at this I opened up the /etc/jailkit/jk_lsh.ini and everything
was commented out. But I did remember setting it up so I then went to
/cvsjail/etc/jailkit/jk_lsh.ini and there was my setup:
[group cvsusers]

the logs mention group cvsuser without the 's'

paths = /usr/bin
executables = /usr/bin/cvs

so heres my question do both /etc/jailkit/jk_lsh.ini and
/cvsjail/etc/jailkit/jk_lsh.ini have to be configured? I didnt even know
that /etc/jailkit/jk_lsh.ini existed until I saw the logs and nothing in the
tutorial pointed me to /etc/jailkit/jk_lsh.ini.

if jk_lsh runs in a chroot jail, you need <jail>/etc/jailkit/jk_lsh.ini, if you run it without a jail you need /etc/jailkit/jk_lsh.ini

regards,
        Olivier




reply via email to

[Prev in Thread] Current Thread [Next in Thread]