T
T
Timofey Dergachev2013-11-18 22:58:25
linux
Timofey Dergachev, 2013-11-18 22:58:25

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

PS I upload everything by a local user

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad Zhivotnev, 2013-11-19
@exeto

If you really go to sftp, then you need to configure openssh-server.

S
serverkon, 2013-11-19
@servekon

Maybe other configs are connected that overlap some variables?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question