0

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 sshd_config:

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.

  • 2
    What client are you using. Pretty sure this is a problem from that. – cristi Jan 19 '15 at 16:11
  • I am using Filezilla. – undefined Jan 19 '15 at 16:31
1

This is a known bug in FileZilla 3.10.0-beta3 through 3.10.0.1.

https://forum.filezilla-project.org/viewtopic.php?t=34953

Either upgrade to 3.10.0.2 or later. Or use another SFTP client.

  • 3.10.0.2 does NOT fix the problem when connected via public key! – user267244 Jan 27 '15 at 15:01
  • @codesight OK. Does that mean, it works when corrected using password? Or is it irrelevant note? Did you try any other SFTP client? WinSCP? – Martin Prikryl Jan 27 '15 at 15:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.