So I decided to go for a secure FTP server and what better than the one called vsftpd or Very Secure FTP Daemon? vsftpd will be in your repos.
This is a FTP server that can be configured in the CLI and has defaults that will make it work pretty much right out of the box.
Now you simply will have to enable and start the ftp server:
Code: Select all
sudo systemctl enable vsftpd.service
Code: Select all
sudo systemctl start vsftpd.service
The file to edit is
Code: Select all
/etc/vsftpd.conf
Distros like Mageia have the config file in /etc/vsftpd/vsftpd.conf
And here you pretty much go in and uncomment:
Code: Select all
write_enable=YES
local_enable=YES
local_umask=022
And that is pretty much it. Anonymous users will be allowed by default. The local_enable makes sure you can use the login as you linux user so you do not have to log in as an anonymous user - I will get back to that.
Go to another box and log in with your favorite ftp client I use Filezilla.
I write the ip of the box I want to access and press enter. This will log me in as anonymous without a password which is set up by vsftpd by default.
The files are served in
Code: Select all
/srv/ftp
It works!
Next we will make sure that clients stay within their area...