Re: set up problem on FreeBSD-10.3
Brought to you by:
xystrus
From: Russ A. <ea...@ey...> - 2016-10-05 03:27:48
|
Adam Jensen <ha...@ri...> writes: > But when I test it with: > scp blah ba...@mi...:/ > Password for ba...@mi...: > rssh_chroot_helper: wordexp() bad syntax > lost connection This error message means that: wordexp(str, &result, WRDE_NOCMD|WRDE_DOOFFS) is returning WRDE_SYNTAX on your system. According to wordexp(3), this means: WRDE_SYNTAX Shell syntax error, such as unbalanced parentheses or unmatched quotes. wordexp here is being used to parse the command that ssh is sending under the hood when you scp. Apparently there's something about that FreeBSD wordexp doesn't like, or somehow the command line is being parsed incorrectly. My bet on why this is succeeding outside the chroot and not succeeding inside the chroot is this tantalizing statement in the FreeBSD wordexp(3) man page: The wordexp() function is implemented as a wrapper around the undocumented wordexp shell built-in command. 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. -- Russ Allbery (ea...@ey...) <http://www.eyrie.org/~eagle/> |