LinuxTutorialsUbuntu

How To Install Vsftpd on Ubuntu 15.04

Install Vsftpd on Ubuntu 15.04

In this tutorial, we will show you how to install and configuration of vsftpd on your Ubuntu 15.04 server. For those of you who didn’t know, FTP stands for “file transfer protocol”, and it allows you to transfer files to a remote computer. The most common FTP server software for Ubuntu is the vsftpd package, which stands for “very secure FTP daemon.” It’s the default FTP package for Ubuntu, and most other Linux distributions as well.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you the step-by-step installation vsftpd in Ubuntu 15.04.

Prerequisites

  • A server running one of the following operating systems: Ubuntu 15.04, and any other Debian-based distribution like Linux Mint or elementary OS.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Vsftpd on Ubuntu 15.04

Step 1. First of all make sure that all packages are up to date.

apt-get update

Step 2. Install Vsftpd.

Installing vsftpd is as simple as running just one command:

apt-get install vsftpd

Configuration Vsftpd

Step 3. Configure vsftpd.

Let’s edit the configuration file for vsftpd:

###nano /etc/vsftpd.conf

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
nopriv_user=vsftpd
virtual_use_local_privs=YES
guest_enable=YES
user_sub_token=$USER
chroot_local_user=YES
hide_ids=YES
guest_username=vsftpd

Step 4. Configure the user’s home directory.

With a certain version of vsftpd you may receive the following error: 500 OOPS: vsftpd: refusing to run with writable root inside chroot(). Not to worry! Create a new directory for the user receiving the error(idroot in this case) that is a subdirectory of their home directory (/home/idroot). For example:

Fix permissions for idroot home directory:

chmod a-w /home/idroot/

Make a new directory for uploading files:

mkdir /home/idroot/files
chown idroot:idroot /home/idroot/files/

Finally, restarted VSFTPD server by running the commands below:

sudo /etc/init.d/vsftpd restart

Congratulations! You have successfully installed vsftpd. Thanks for using this tutorial for installing vsftpd in Ubuntu 15.04 system. For additional help or useful information, we recommend you to check the official vsftpd website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

Save

Save

r00t

r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button