jailkit-users
[Top][All Lists]
Advanced

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

Re: [Jailkit-users] jailkit installation


From: Dolf Andringa
Subject: Re: [Jailkit-users] jailkit installation
Date: Tue, 5 Oct 2010 18:38:43 +0200

Hey everyone,

I found out that /usr/sbin/jk_init is just a python file where the INIPREFIX is set at the top. Indeed it is set to /usr when I install jailkit. I now manually changed it to /etc/jailkit and everything works fine, but I guess there is still something that me or the configure/make scripts are doing wrong during installation for it to be set to /usr.
But jailkit works for me now though.
Cheers,

Dolf.

On 5 October 2010 18:04, <address@hidden> wrote:
Hey everyone,

I just installed Jailkit on ubuntu lucid. I downloaded the latest version
from the site and installed it with "./configure" "make" "sudo make
install". When I run sudo jk_init basicshell or something, jk_init throws an
error that it can't find /usr/jk_init.ini file. I can specify the location
of that file with -c and then jk_init runs fine. Untill I try to run
"jk_init -c /etc/jailkit/jk_init.ini /jail jk_lsh" which throws an error
that it can't find /usr/jk_socketd.ini. I guess something is going wrong
here with the file locations. I didn't specify a prefix with the ./configure
command.
While digging into it I see the INIPREFIX as the location of the ini files
in the source code. Most of the times that is set to /etc/jailkit, but I
also see that set to /usr a couple of times according to:

address@hidden:~/jailkit-2.12$ grep "INIPREFIX='/usr'" * -Rn
py/jk_check:43:INIPREFIX='/usr'
py/jk_addjailuser:39:INIPREFIX='/usr'
py/jk_update:41:INIPREFIX='/usr'
py/jk_jailuser:42:INIPREFIX='/usr'
py/jk_cp:40:INIPREFIX='/usr'
py/jk_init:41:INIPREFIX='/usr'

Might this be the reason for the error?
Cheers,

Dolf.


reply via email to

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