Wrong permissions on VSFTP umasks
I'm trying to set up a webserver on my Debian 7.0 VPS. Now I've set up the apache webserver, mysql and ftp access. I only want 1 user to be able to upload files to the webfolder so I created a user called 'ftp'. This user is member of the www-data group and every file he adds to the webfolder is owned by group www-data.
What I want to achieve now is that every new file I add gets 664 permissions and every directory I add should get 775 permissions. So, I set the local_umask setting to 002.
The results I'm getting is 772 for directories and 662. Can someone explain me why this is? I just can't wrap my head around :S