I've been searching here and but I could not find similar question.
I have set up SSH
and sftp
server on debian 7
, the problem is that the umask
is applied without execute permissions. Even if I change the different value, execute permissions are never applied.
Here is my configuration:
Match Group sftp-users
ChrootDirectory /sftp/%u
AuthorizedKeysFile /sftp/%u/.ssh/authorized_keys
X11Forwarding no
AllowTcpForwarding no
# AuthenticationMethods publickey
ForceCommand internal-sftp -u 0002
Example:
-u 0002
uploaded file.txt should get 775 permissions but gets 664 instead-u 0222
uploaded file.txt should get 555 but got 444-u 0666
uploaded file.txt should get 111 but got 000
Could you please let me know which files should be checked or what other config you need to see? Thank you!