I am using chroot in sftp. And it works perfectly, but files uploaded with FileZilla are stored without any permissions (basically 000).
---------- 1 cwsftp sftp 4364328 Jan 19 16:02 hygq8KAZ3seC.128.mp3
This is my setup in the
Subsystem sftp internal-sftp Match Group sftpusers ChrootDirectory /sftp/%u ForceCommand internal-sftp X11Forwarding no AllowTcpForwarding no
I already tried adding
-u 0002 and such things, without effect.