Fresh LAMP server setup with Ubuntu 12.04 and VSFTPD.
I'm trying to access the
/var/www folder (web root) with FTP user.
I created a new user
ftpuser and added it to the
www-data user group created automatically by Apache.
Home directory of that user is set to
I also changed the ownership of the
www-data group and changed permissions to
However, I'm still not able to upload files. Error is: "553 Could not create file".
- Can someone please explain me how to set these permissions properly?
- What is the correct setup? Should I set the home directory of
/var/wwwor somehow diffeerently?
I found a lot of topics on the web but none of them offer a universal solution.
Here is the output of
ls -l of
drwxr-sr-x 3 root ftpuser 4096
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 chown_uploads=YES chown_username=ftpuser chroot_local_user=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