A common issue when using droplets from Digital Ocean if post ProFTPD installation and you wish to upload your website to /var/www. By following the standard tutorials, your user wont have access to the folder.
Here is what you need to do…
Edit ProFTPD Config
Re-edit the config and re-comment out the Default Root line
sudo nano /etc/proftpd/proftpd.conf
Find the correct line and re-comment it out
# Use this to jail all users in their homes # DefaultRoot
Restart PtoFTPDsudo service proftpd restartConfirm the Group allocation for /var/wwwstat /var/www
Output from the comment should show something like this..File: `/var/www' Size: 20480 Blocks: 40 IO Block: 4096 directory Device: fd00h/64768d Inode: 1312692 Links: 11 Access: (0775/drwxrwxr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2013-08-23 08:54:30.290042645 +0000 Modify: 2013-08-23 11:20:25.322055581 +0000 Change: 2013-08-23 11:20:25.322055581 +0000The Group here is shown under "Gid: ( 0/ root)" as root. We now need to change our non-root user that we use for FTP to belong to the same Group (root)usermod -a -G root YOURUSERWhen you now FTP into your droplet, you can navigate to /var/www and upload files!