[Top][All Lists]

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

Re: [Jailkit-users] Config problems - New users don't work

From: Derek
Subject: Re: [Jailkit-users] Config problems - New users don't work
Date: Mon, 14 Jun 2010 08:27:56 -0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20100317 Thunderbird/3.0.4

The time adjustment worked and it is reporting correctly now.

address@hidden:~# grep jailtest /jail/etc/passwd

address@hidden:~# grep jailtest /etc/passwd


On 6/13/2010 2:42 AM, Olivier Sessink wrote:
On 06/10/2010 04:28 PM, Derek Weichenthal wrote:

I'm a new user to jailkit, previously this network was using a jail
environment but it was built with an older package from a couple years
ago and it will no longer create a user that works properly. I'm having
some similar problems using the 2.11 release.

Following the README.txt included I can successfully create the jail
environment and add sftp and scp support. I was able to add the user
correctly, my /etc/passwd and /jail/etc/passwd are correct according to

I have edited /jail/etc/jailkit/jk_init.ini and added:
paths = /usr/bin, /usr/lib
executables = /usr/lib/sftp-server, /usr/lib/scp
allow_word_expansion = 1
umask = 002

Ran killall command then ran jk_socketd to restart. Now at this point
everything should be working according to the readme.
address@hidden:/jail/etc/jailkit# sftp address@hidden
Connecting to titan...
address@hidden's password:
Connection closed

>From /var/log/messages, I am not sure why jk_lsh is reporting 4 hours
in the future, could this be the problem?

you probably don't have timezone information in your jail.

jk_init -j <jail> logbasics

> If I try to use SSH instead of
SCP I get the same message and it also reports 4 hours ahead.
Jun 10 10:21:08 titan jk_socketd[22109]: version 2.11, listening on
socket /var/chroot/dev/log with rates [512:2048]/10.000000
Jun 10 10:21:08 titan jk_socketd[22109]: version 2.11, listening on
socket /jail/dev/log with rates [512:2048]/10.000000
Jun 10 10:21:08 titan jk_socketd[22109]: version 2.11, socket
/jail/dev/log is mentioned multiple times in config file
Jun 10 10:21:16 titan jk_chrootsh[22117]: now entering jail /jail for
user jailtest (9041)
Jun 10 14:21:16 titan jk_lsh[22117]: jk_lsh version 2.11, started
Jun 10 14:21:16 titan jk_lsh[22117]: cannot find user info for USER
jailtest: Success

this means that jk_lsh cannot find the user jailtest inside jail /jail

what does `grep jailtest /jail/etc/passwd` show?

I am unable to check /var/log/daemon.log or /var/log/auth.log as I do
not have them on my system. If these logs would help I would need a hand
setting them up as well to work with the jailkit.

on your system probably everything is logged to /var/log/messages


Jailkit-users mailing list

reply via email to

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