jailkit-users
[Top][All Lists]
Advanced

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

Re: [Jailkit-users] jk_check: 1fix and some error messages


From: cgzones
Subject: Re: [Jailkit-users] jk_check: 1fix and some error messages
Date: Fri, 25 Feb 2011 14:55:48 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b13pre) Gecko/20110224 Thunderbird/3.3a3pre

Hi list,
i ignored now the last 4 errors but i don't know what's wrong with the first one. I configured my jail like http://olivier.sessink.nl/jailkit/howtos_chroot_shell.html (i said already) and my /etc/passwd looks like:
tunneluser:x:2002:2003::/home/jail/./home/tunneluser:/usr/sbin/jk_chrootsh
and the /home/jail/etc/passwd has following line
tunneluser:x:2002:2003::/home/tunneluser:/bin/bash
(i created a bash shell)
What's wrong there (or is the error somewhere else?) or wherefore do i need /sbin/jk_chrootsh (because i have created a bash shell)?
Best regards,
                           Christian



Am 19.02.2011 09:38, schrieb Olivier Sessink:
On 02/18/2011 05:20 PM, Christian Göttsche wrote:
Hi list,
i'am using jailkit on debian 5.0 and created a chrooted shell on the
basis onhttp://olivier.sessink.nl/jailkit/howtos_chroot_shell.html.
I edit in the /usr/sbin/jk_check the PREFIX into EXEPREFIX, but the
script doesn't work anyway. Although python2.5 and python2.5-minimal
is installed on my server, python doesn't know the function trim(); so
i have to edit the line 215 into
if (rpw[6].strip() != chrootsh):
and now it works. Haven't i install some packages or why doesn't he
know the function??
I really should do a new release soon, this was fixed in CVS already.

When i now run jk_check i get these error messages:
ERROR: user tunneluser has a /./ but does not have the /sbin/jk_chrootsh shell
this sounds as something you want to look at

/home
ERROR: /home/jail/etc/passwd and /etc/passwd have a different size!
ERROR: /home/jail/etc/group and /etc/group have a different size!
ERROR: /home/jail/etc/ld.so.cache and /etc/ld.so.cache have a different size!
ERROR: cannot stat() /home/jail/home/tunneluser/.bash_history or
/home/tunneluser/.bash_history !
you probably want to ignore these in /etc/jailkit/jk_lsh.ini

Olivier

_______________________________________________
Jailkit-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/jailkit-users



reply via email to

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