I'm assuming you refer to the ChrootDirectory
option of OpenSSH.
Why must these directories be owned by root and have 755 permissions?
Why can't the chrooted user be its owner?
Given that chroots are usually used to limit what some process can do by limiting the set of available files, this is useful to prevent any accidents where some unauthorized user gets to modify the chroot environment.
The chrooted user itself could also do that, especially if they happen to have another way into the system. Also, it's probably simpler to just deny all non-root access rather than make an exception for the user in question.
- Why is the user able to read and write in it, while he doesn’t have such permission?
Well, they won't. But note that the ssh daemon changes to the user's home directory within the chroot, and they might well have read and write access there.
That is, you could have /path/to/chroot/home/user
, where the user only has write access to that last directory.