1

I have a user that i'd like to confine to his home folder which i've assigned as /var/www/x

I'm using the following config in /etc/vsftpd.conf :

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
chroot_local_user=YES
allow_writeable_chroot=YES
chroot_list_enable=NO
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
pasv_enable=Yes
pasv_min_port=40000
pasv_max_port=40100

As you can see write_enable is set to yes and i've already restarted my vsftpd server.
I'm able to login as the user and see his files, however i'm not able to edit them.
I've used chmod -R 777 /var/www/x and chown -R user:ftpaccess /var/www/x but unfortunately still no luck.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.