I have been trying to figure out what is wrong with the file rights. When I am uploading files using FileZilla all the files get rights -rw-r--r--. I would want them to have -rwxr-xr-x. I have tried using umask to fix the rights but something is wrong. I have read that you could change the rights with umask like this for example:
In /etc/ssh/sshd_config, change the following:
Subsystem sftp /usr/lib/openssh/sftp-server -u 002
With this change I am getting files with -rw-rw-r--. As far as I know 0 should give all rights? But I am getting rw only.
Whats wrong? I am using Debian.