I'm trying to Chroot a user name rasportine to a folder. I followed a tutorial and modified the sshd_config file by adding
Match User rasportine
ChrootDirectory /var/www/clubs/rasportine
ForceCommand internal-sftp
X11Forwarding no
AllowTcpForwarding no
I think the access rights of the folders are right, the result of ls -ld
is
drwxr-xr-x 4 root root 4096 Dec 24 12:05 rasportine
But when I try to connect with filezilla to the server using rasportine account this error appears in the logs.
pam_unix(sshd:session): session opened for user rasportine by (uid=0)
fatal: bad ownership or modes for chroot directory component "/"
How can I get rasportine to log directly in this folder so that he can only access this one?
Thanks.