Raspberry Pi – Set up FTP

To set up FTP on the raspberry pi so that we can upload files for the website in www

First, we need to have permission to access the www folder

sudo chown -R pi /var/www

Next, we install FTP

sudo apt-get install vsftpd

Then edit the configuration file for vsftpd

sudo nano /etc/vsftpd.conf

Make the following changes to the configuration file

anonymous_enable=YES -> anonymous_enable=NO
#local_enable=YES -> local_enable=YES
#write_enable=YES -> write_enable=YES
#local_umask=022 -> local_umask=777
#chown_uploads=YES -> chown_uploads=YES
#chown_username=pi -> chown_username=www-data

Add the following to the end of the file:


Then restart the service:

sudo service vsftpd restart

Create a shortcut so that the www folder appears in the FTP root:

ln -s /var/www/ ~/www



RMTWeb - blogging, solving complex technical problems and queries, putting the world to rights and general musings since 1991. Now using a 4G connection that is 5,547 times faster than when writing my first post using a 14.4Kbit modem!

One thought on “Raspberry Pi – Set up FTP

  1. I know this post is more than 3 years old… but I think you mean:

    #local_umask=022 -> local_umask=777

    instead of:

    #local_unmask=022 -> local_unmask=777

Leave a Reply