On Tue, Oct 4, 2016 at 11:30 PM, Russ Allbery <ea...@eyrie.org> wrote:
> Adam Jensen <han...@riseup.net> 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.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
rssh-discuss mailing list
rssh-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rssh-discuss

Reply via email to