Thus said Pete Vickers on Mon, 13 Sep 2010 10:59:56 +0200: > Any clues what I'm doing wrong ? Google seems to hint that the chroot > directory might have to be owned by root, but that seems strange, > since users couldn't then write files in their own home ?
Maybe start by reading the man page sshd_config(5) instead of relying on google? :-) It seems to suggest, as you indicate, that the chroot directory must be root owned. But what I believe is more important is that you missed the following: ChrootDirectory Specifies a path to chroot(2) to after authentication. This path, and all its components, must be root-owned directories that are not writable by any other user or group. After the chroot, sshd(8) changes the working directory to the user's home directory. This would seem to indicate to me that you need a structure like: /chroot/home/pete And then you would set: ChrootDirectory /chroot You might want to read the rest of the section for ChrootDirectory. It's also possible that I have misinterpreted the man page. Andy