Ubuntu – How to add permission to write to /var/www for the FTP client

permissionsservervsftpd

I'm trying to install Tapatalk plugin on my phpbb3 forum

enter image description here

Write method for automod is FTP and connection is successful. I think the FTP client might not have write permission to /var/www. How can I fix that? I'm using Ubuntu Server 12.04 with vsftpd.

drwxr-xr-x 3 root root 4096 Aug 19 02:07 www

Thanks!

Best Answer

You could change the ownership of /var/www to be the same owner that your FTP client uses.

For example if your FTP client runs as 'nobody' then use this command:

sudo chown nobody:nobody /var/www

Be aware that this will allow your FTP client to do anything to any of the files in /var/www and subdirectories. This might be a security risk. After the install is completed, you could always switch the ownership back to the root user again with:

sudo chown root:root /var/www
Related Question