I configured OpenSSH like this
Subsystem sftp internal-sftp Match Group sftp ForceCommand internal-sftp -u 002 AuthorizedKeysFile /home/sftp/ssh/%u ChrootDirectory %h X11Forwarding no AllowTcpForwarding no
This configuration is working, but there is one problem: Files or folders which are copied from local drive to sftp keep their permissions (usually
755) and no other
sftp-user has access to them.
sftp-users only have full permissions if someone creates a folder or file or copies a file with 775 permissions.
Is there a way that all files in the
At the moment I'm using
chmod -R 775 /home/sftp/files/ to set it manually, but this isn't the solution i would like to have...