Tag: vsftpd

Installing an FTP server (vsftpd) on Ubuntu 18.04

Installing an FTP server (vsftpd) on Ubuntu 18.04

vsftpd (Very Secure File Transfer Protocol Daemon) is a popular FTP server for Ubuntu. In this guide we will install and configure vsftpd on Ubuntu 18.04 LTS (Bionic Beaver). We will also set up an FTP user and optionally configure SFTP for secure file transfers.

1. Install vsftpd Let’s begin by updating the package lists and installing vsftpd on Ubuntu 18.04. Below we have two commands separated by &&. The first command will update the package lists to ensure you get the latest version and dependencies for vsftpd. The second command will then download and install vsftpd. Press y and ENTER when asked to continue. sudo apt update && sudo…

Continue reading Installing an FTP server (vsftpd) on Ubuntu 18.04

Deny FTP user access to SFTP and SSH

You may have a case where you’ve added an FTP user to allow file transfer using vsftpd FTP server for example, but don’t want them to have access to SFTP/SSH. To prevent users from logging into via SSH or SFTP, you can simply add their username to the SSH config file. Open the SSH config…

Continue reading Deny FTP user access to SFTP and SSH

Example vsftpd.conf configuration file with or without TLS support

Below are two sample configs files for vsftpd with all comments removed for legibility. 1. Config File for Non-TLS support Before editing the config file, create a backup. sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.bak Now delete vsftpd.conf as we will create our own one. sudo rm /etc/vsftpd.conf Now, create a new config file. sudo nano /etc/vsftpd.conf Paste…

Continue reading Example vsftpd.conf configuration file with or without TLS support

Guide: Installing an FTP server (vsftpd) on Ubuntu 16.04 / 17.10

In this guide we will install and configure vsftpd on Ubuntu 16.04 / 17.10. 1. Install vsftpd Let’s begin by updating the list of available packages and installing vsftpd. sudo apt-get update sudo apt-get install vsftpd To check the status of vsftpd, run sudo service vsftpd status ● vsftpd.service – vsftpd FTP server Loaded: loaded…

Continue reading Guide: Installing an FTP server (vsftpd) on Ubuntu 16.04 / 17.10

vsftpd 550 Permission denied Ubuntu

You may need to edit your vsftpd configuration file (vsftpd.conf) as writing is disabled by default. Edit vsftpd.conf: sudo nano /etc/vsftpd.conf If it isn’t in that location, try searching for it: locate vsftpd.conf In vsftpd.conf, search for the following line /etc/vsftpd.conf #write_enable=YES Remove the # sign from this line. Save file and exit. (Press CTRL…

Continue reading vsftpd 550 Permission denied Ubuntu

vsftpd configuration file location in Ubuntu (vsftpd.conf)

To edit the vsftpd configuration file (vsftpd.conf) in Ubuntu, run the following command sudo nano /etc/vsftpd.conf If it isn’t in that location, try searching for it locate vsftpd.conf This will give a list of locations. To restart vsftpd service vsftpd restart

Continue reading vsftpd configuration file location in Ubuntu (vsftpd.conf)

vsftpd: Why are the permissions for all my uploaded files set to 600?

If all your uploaded files have permissions set to 600, you will need to alter the vsftpd config file. sudo nano /etc/vsftpd.conf Look for the line #local_umask=022 (You can search in nano with CTRL + W, type local_umask, press ENTER) Uncomment this line by deleting the # sign so it looks like this vsftpd.conf local_umask=022…

Continue reading vsftpd: Why are the permissions for all my uploaded files set to 600?