vsftpd is a faste and secure FTP server for UNIX-like systems

Installing vsftpd

In order to allow the transfer of files between your Mac and your Raspberry Pi, you'll need to set up an FTP connection. To do so,

Enter this command to allow you to take full control of the web server's root directory (this assumes you've already installed apache):


sudo chown -R pi /var/www

Enter this command to install vsftpd


sudo apt-get install vsftpd

Now edit the configuration file for vsftpd to make it more secure and user friendly.


sudo nano /etc/vsftpd.conf

Check "anonymous_enable=NO" to disable Anonymous FTP)

Ensure "local_enable=YES" and "write_enable=YES" are un-commented (to allow you to make changes to the FTP server).

Ensure "local_umask=022" is not commented out (this allows files uploaded as the "pi" user for instance to be served (apache runs as root)

Add "force_dot_files=YES" to the bottom to enable files such as .htaccess

Use CTRL+X to save and exit

Restart the new FTP server


sudo service vsftpd restart


 

USEFUL?
We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.

Comments

  1. atux atux

    4 years ago

    Hi. i’ve followed the tutorial and i can connect through winscp (ftp) to the rpi. the problem is that i do not have access to right anything to it.

Comments

Your email address will not be published. Required fields are marked *