Re: set up problem on FreeBSD-10.3
Brought to you by:
xystrus
From: Nico Kadel-G. <nk...@gm...> - 2016-10-05 13:01:11
|
On Tue, Oct 4, 2016 at 11:30 PM, Russ Allbery <ea...@ey...> wrote: > Adam Jensen <ha...@ri...> writes: >> On 10/04/2016 11:09 PM, Russ Allbery wrote: > >>> I'll bet that /bin/sh in your chroot is not the same as /bin/sh outside >>> your chroot, it's not recognizing this shell built-in, and libc is >>> incorrectly interpreting this as a syntax error. > >> This is an interesting statement. There isn't anything inside the >> chrootpath directory. That is, > >> pwd >> /usr/local/chroot > >> ls >> banks/ > >> Should there be a '/usr/local/chroot/bin/sh'? If so, what else needs to >> be in the chrootpath? > > Yeah, sadly you need a bunch of stuff in the chroot because you have to > execute the server end of scp or whatever in the chroot. So it needs all > of its libraries and so forth. > > The mkchroot.sh script in the distribution does an okay job for Linux > systems but is probably missing a ton of stuff for FreeBSD. There's a > bunch more details in the CHROOT file. It's pretty seriously out of date. I've published a much more recent one, at https://github.com/nkadel/rssh-chroot-tools I've offered it before. |