Setting up an FTP server
Posted: 13 Apr 2015, 11:48
I cannot describe this better than than the Arch Wiki but maybe I can add something that makes it more accessible
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:
and
The file to edit is this location may slightly vary in different distros, but you only need to find that one file.
Distros like Mageia have the config file in /etc/vsftpd/vsftpd.conf
And here you pretty much go in and uncomment:
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 by default - so that is where you put your content.
It works!
Next we will make sure that clients stay within their area...
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...