Select Page

ABIOLA RASP – Raspberries for African School Projects

Wie können wir helfen?

< Alle Themen
Print

How can I set up an FTP location?

no-235 au-03

Install vsftpd

You need to install vsftpd as a first step. Follow below instructions:

  1. Open terminal
  2. Run below command

sudo apt-get update

3. Run below command to install vsftpd

sudo apt-get install vsftpd

Modify the configuration file

  1. Run below command open the configuration file.

sudo nano /etc/vsftpd.conf

We used nano text editor to open files. You can use different text editors.

  1. Find the below lines in this file and uncomment them by deleting # character.

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_unmask=022
chroot_local_user=YES

1, Add the following lines to the end of this file.

user_sub_token=$USER
local_root=/home/$USER/ftp

Save and exit using CTRL+X, then Y, then ENTER

Create ftp directory for pi user

  1. Run below command to create ftp folder

mkdir /home/pi/ftp

2. Run below command to create files folder under ftp

mkdir /home/pi/ftp/files

3. Change permission on the ftp directory

chmod a-w /home/pi/ftp

4. Restart ftp server

sudo service vsftpd restart

After restart ftp server, you can connect your ftp server to use it.

After restart ftp server, you can connect your ftp server to use it.

Zurück How can I query FTP data?
Weiter How to connect WiFi
Inhaltsverzeichnis