Security
An administrator configures a Match Group block with ChrootDirectory /srv/sftp/alice and ForceCommand internal-sftp. Alice's login fails and the log reports "bad ownership or modes for chroot directory." What must be true of the chroot directory?
Show the answer
Correct answerA. It is owned by root and not writable by any other user or group
sshd requires every component of the chroot path to be root-owned and not writable by group or others; uploads go into a writable subdirectory. A directory owned by the user or writable by group is rejected as an insecure chroot.