Answer the question
In order to leave comments, you need to log in
What causes the permissions issue in vsftpd?
It costs Ubuntu 13.04 Server and Vsftpd 3.0.2. When writing via sftp, folders and files are created with permissions 775 and 664, respectively. It is necessary that they be created with 755 and 644. local_umask=022
, but it still does not work. Please help me figure it out.
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
Answer the question
In order to leave comments, you need to log in
If you really go to sftp, then you need to configure openssh-server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question