[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Jailkit-users] Re: Hi problem with using jail
From: |
Maverick |
Subject: |
[Jailkit-users] Re: Hi problem with using jail |
Date: |
Tue, 21 Nov 2006 11:43:28 +0000 |
User-agent: |
KMail/1.9.4 |
Hi Olivier
> are you executing this command as root? (I should give a nicer error here)
No i run it as a normal user. When i run with sudo then i come back with error
about ldd
I think OpenBSD 4.0 have change as well. I have tried with OpenBSD 3.9 and it
worked.
Best regard
Maverick
On Tuesday 21 November 2006 11:26, you wrote:
> > 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'
>
> are you executing this command as root? (I should give a nicer error here)
>
> > $ 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
> > $
>
> ahh, we obviously have a parsing error here, the ldd output has changed in
> the latest openbsd release.
>
> I'll take a look at that
>
> regards,
> Olivier
[Jailkit-users] Re: Hi problem with using jail, Maverick, 2006/11/21