What the problem with the rights in vsftpd?

Is Ubuntu 13.04 Server and Vsftpd 3.0.2. When recording via sftp, the files and folders are created with permissions 775 and 664 respectively. Need to be created with 755 and 644. local_umask=022, but still not working. Please help to understand.

Here is the config:
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key

PS Pumped all local user
October 3rd 19 at 01:42
3 answers
October 3rd 19 at 01:44
Solution
If you do go for sftp - you openssh-server configure need.
openssh-server can not virtual users - alice_Swaniawski commented on October 3rd 19 at 01:47
the author of the question didn't say anything about virtual users. - Magdalen_Hoeger commented on October 3rd 19 at 01:50
thank you very much. You need to learn to carefully read instructions. - alta73 commented on October 3rd 19 at 01:53
that is not for WH - brionna.Crist95 commented on October 3rd 19 at 01:56
October 3rd 19 at 01:46
Solution
-- Vsftp is an ftp server. The maximum that he is able to work over ssl connection, you need to sftp openssh-server server.
October 3rd 19 at 01:48
Can be connected other configs that override some of the variables?
I don't even know how to check. Installed via apt-get install, and all that has changed, a couple of points in the config. So I think that's not the problem. Upload all local user, can be this the problem? - alice_Swaniawski commented on October 3rd 19 at 01:51

Find more questions by tags Linux