[Top][All Lists]

[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: Sun, 27 Feb 2011 20:34:12 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b13pre) Gecko/20110227 Thunderbird/3.3a3pre

HI list,
thanks for your fast response, Olivier.
I checked the jk_check file and i found following lines (214-216):

"chrootsh = os.path.join(EXEPREFIX, '/sbin/jk_chrootsh')
if (rpw[6].strip() != chrootsh):
print 'ERROR: user '+rpw[0]+' has a /./ but does not have the '+chrootsh+' shell'"

(EXEPREFIX is defined at the top with "EXEPREFIX='/usr'", and i compared my file with the jk_check file in the cvs repository) I think the operation os.path.join do not run as it should. I think it should combine the two strings together, but in the print line the variable is still "/sbin/jk_chrootsh" and not EXEPREFIX/sbin/jk_chrootsh. Can it be that line 214 has to look like "chrootsh = EXEPREFIX+'sbin/jk_chrootsh'

Best regards,

Am 25.02.2011 21:01, schrieb Olivier Sessink:
On 02/25/2011 02:55 PM, cgzones wrote:
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:
and the /home/jail/etc/passwd has following line
(i created a bash shell)
What's wrong there (or is the error somewhere else?)
hmm error in jk_check it seems, it checks for /sbin/jk_chrootsh but you
have /usr/sbin/jk_chrootsh


Jailkit-users mailing list

reply via email to

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