Installing the FTP Server
- Log into the Linux device
- Run the following commands in terminal
# update software repositories
sudo apt update
# install available software updates
sudo apt upgrade
# install proftpd
sudo apt install proftpd -y
# start proftpd service
sudo systemctl enable proftpd --now
Configuring the FTP Server
In this example we will be allowing FTP to the /var/www directory to alter web server files
- Continue with the following commands
# add current user to www-data group
sudo usermod -aG www-data $USER
# re-authenticate the user for the new group to take effect
su $USER
# list the users groups
# www-data should be listed
id
# change owner of /var/www to the www-data group
sudo chown -R www-data:www-data /var/www
# change permissions recursively
sudo chmod -R ug+rw /var/www
Testing the FTP Server
- Download a FTP client, in this tutorial we'll be using FileZilla FTP Client Download
- Install FileZilla FTP Client
- Input the Linux devices IP address or DNS name and the Linux user's username and password > Click Quickconnect
- Click the / at the top of the right file tree to get to the rootfs
- Navigate to /var/www
- Create a test file or folder
- You now have FTP access to your Linux server using your standard Linux credentials
Documentation for ProFTPD: http://www.proftpd.org/docs/