June 30, 2020
Enabling FTP in Linux is actually really simple and not that daunting. Here is a quick, simple tutorial on how to enable FTP in Linux!
Our first step is to install vsftpd
. We can do this by running:
Now after we install it, we need to start it. To do this, run:
And that’s the basic setup! You now should have an FTP server up and running!
This part is optional really, since most of the configuration settings that are essential are already enabled but it’s really important to know about configuring vsftpd.
First, before we configure vsftpd, lets make a backup of the original configuration file:
And configuring the file is just a matter of opening up the configuration file!
Remember that the location of the configuration file is at /etc/vsftpd.conf
To disable anonymous login and to enable local users login and give them write permissions:
To deny some users to login, add the following options in the end of the file:
To allow just some users to login:
To use vsftpd with encryption (it’s safer), change or add the following options (some options aren’t on the original config file, so add them):
Here are other additional options that may come handy:
If you have modified the configuration file, remember that we need to apply them! To do this, run:
And that is pretty much it for this tutorial! You now successfully have enabled FTP/SFTP on Linux! I hope this tutorial helped you!