Hi Dolf,
I had the same problem and wrote the mailing list a few days ago. I
ended up just manually editing each individual program, as they are
just Python scripts. Just open up the utilities in a text editor and
change the "iniprefix" variable to "/etc/jailkit". Works great.
Thanks,
Mike
On 10/05/2010 08:24 AM, Dolf Andringa 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.
_______________________________________________
Jailkit-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/jailkit-users
|