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

Re: chroot jail problem



On Fri, 2014-02-14 at 12:45 +0100, Antonio Fernández Pérez wrote:
> Hi everybody, 
> 
> 
> I would like to configure a chroot jail on Debian 7 64-bit. I'm trying
> to execute make_chroot_jail.sh to create a jail but I have problems
> with some libraries: 
> 
> 
> Copying necessary library-files to jail (may take some time)
> cp: impossible execute `stat' for «/lib/libnss_compat.so.2»: File not
> exists
> cp: impossible execute `stat' for «/lib/libnsl.so.1»: File not exists
> cp: impossible execute `stat' for «/lib/libnss_files.so.2»: File not
> exists
> cp: impossible execute `stat' for «/lib/libcap.so.22»: File not exists
> cp: impossible execute `stat' for «/lib/libnss_dns.so.2»: File not
> exists
> Copying files from /etc/pam.d/ to jail
> Copying PAM-Modules to jail
> cp: impossible execute `stat' for «/lib/security»: File not exists
> 
> 
> Anybody knows another method or how can I do to fix these problems?

What method(s) did you try? Writing to a mailing list only?

1. Try to use a search engine, e.g. https://startpage.com and search for
"wheezy /lib/libnss_compat.so.2" etc. > e.g.
https://packages.debian.org/squeeze/amd64/libc6/filelist > then install
the missing package.

2. Ask the author of some obscure scrip to update the script. When I
search for "make_chroot_jail.sh" I only get links to very old scripts.

3. Use FreeBSD, if you need jails.

4. To be serious, follow step 1., try to use a search engine and install
missing packages ;).



Reply to: