Security

Members of the sftponly group are confined with ChrootDirectory /srv/sftp/%u in a Match Group block. Their sessions close immediately, and the log shows that /usr/lib/openssh/sftp-server cannot be executed. The global Subsystem line points to that binary. Which change BEST fixes this without copying binaries and libraries into each chroot?

Show the answer

Correct answerC. Change the Subsystem line to internal-sftp so the server handles SFTP itself

internal-sftp runs inside the sshd process, so the chroot needs no binaries or libraries. Pointing ChrootDirectory at / defeats the confinement and does not meet the requirement.