[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Jailkit-dev] Re: Hi problem with using jail
From: |
Maverick |
Subject: |
[Jailkit-dev] Re: Hi problem with using jail |
Date: |
Tue, 21 Nov 2006 10:26:05 +0000 |
User-agent: |
KMail/1.9.4 |
Hi
I have tried what you mentioned. And here is how it happened. I using a normal
user account but when using sudo then it has root privileges.
$ jk_cp /home/jail /usr/sbin/jk_lsh
Traceback (most recent call last):
File "/usr/sbin/jk_cp", line 129, in ?
main()
File "/usr/sbin/jk_cp", line 126, in main
startcopy(config, args[0], args[1:])
File "/usr/sbin/jk_cp", line 74, in startcopy
jk_lib.copy_binaries_and_libs(chroot,filestocopy,config['force'] ,
config['verbose'])
File "/usr/share/jailkit/jk_lib.py", line 321, in copy_binaries_and_libs
create_full_path(chroot+os.path.dirname(file),be_verbose)
File "/usr/share/jailkit/jk_lib.py", line 215, in create_full_path
os.mkdir(directory[:indx], 0755)
OSError: [Errno 13] Permission denied: '/home/jail/usr'
$ sudo jk_cp /home/jail /usr/sbin/jk_lsh
ldd returns non existing library exe
ldd returns non existing library rlib
ldd returns non existing library rtld
$ ldd /usr/sbin/jk_lsh
/usr/sbin/jk_lsh:
Start End Type Open Ref GrpRef Name
00000000 00000000 exe 1 0 0 /usr/sbin/jk_lsh
05e7c000 25ead000 rlib 0 1 0 /usr/lib/libc.so.39.3
0509e000 0509e000 rtld 0 1 0 /usr/libexec/ld.so
$
Best regard
Maverick
On Tuesday 21 November 2006 07:00, Olivier Sessink wrote:
> Maverick wrote:
> > Hi
> >
> > i have successful install jailkit in OpenBSD 4.0 how ever i try to
> > follow the example from the hompage chroot shell
> >
> > so i run these command
> > mkdir /home/jail
> > chown root:wheel /home/jail <- This is the only different command that i
> > have used
> > jk_init -v /home/jail basicshell
> > jk_init -v /home/jail editors
> > jk_init -v /home/jail extendedshell
> > jk_init -v /home/jail netutils
> > jk_init -v /home/jail ssh
> > jk_init -v /home/jail sftp
> > jk_init -v /home/jail scp
>
> jk_init.ini is designed for a Debian system, there is no openbsd format
> of that file yet (openbsd has a lot of files in different locations). So
> you'll have to use jk_cp to copy the files.
>
> > To make sure i tried jk_cp and that is what happened
> >
> > # jk_cp /home/jail/usr/bin/ /usr/sbin/jk_lsh
>
> jk_cp /home/jail /usr/sbin/jk_lsh
> is the correct syntax
>
> > ldd returns non existing library exe
> > ldd returns non existing library rlib
> > ldd returns non existing library rtld
>
> what is the output of `ldd /usr/sbin/jk_lsh`
>
> regards,
> Olivier
>
> b.t.w. please post questions like these to the list so other people know
> what is going on too. Posted to address@hidden