

Step 4: Starting the ProFTPd service /etc/init. At the bottom of this configuration file, add these lines.īe sure to replace \ with the user(s) you created previously Step 3: Set the directory per virtual user. Please set it to this DefaultRoot /home/FTP It will look like this at first #DefaultRoot ~ Step 2: Uncomment the DefaultRoot option. Step 1: Setting the default root directory nano /etc/proftpd/nf If you're going to have multiple users, don't forget to add those directories into the FTP directory.
#Debian install ftp how to#
How To Configure The ProFTPd Config File To Lock Each User In Their Directory Step 6: Make sure to change the permissions of the file to 777 chmod 777 FTP
#Debian install ftp password#
Replace \ with what you would like your virtual user to be called and replace \ with your desired password Step 5: Create the FTP virtual user useradd -p -d /home/FTP/ -s /bin/false Replace \ with what you would like your virtual user to be called

Step 4: Create the directory for your virtual user mkdir /home/FTP/ The FTP directory can be called anything you wish, but for now, we will call it FTP Step 3: Create the FTP directory cd /home Step 2: Then add the following line at the bottom /bin/false Step 1: First, we need to add a line to the /etc/shells file nano /etc/shells How To Configure Virtual Users and Directories Step 3: Install Proftpd apt-get install proftpd Step 1: SSH into your Debian Installation

#Debian install ftp update#
The installation is pretty straightforward: sudo apt update sudo apt install vsftpd vsftpd service will automatically start after the installation process is complete. It can sometimes take a few minutes for you to see such a configuration change when you connect via your FTP client.This guide will walk you through ProFTPd server installation and configuration, showing you how to customize your FTP server's actions by walking you through ProFTPd configuration. The vsftpd package is available in the Debian repositories. Save the changes and close the file with the key combination ctrl + x > y > enter.įinally, restart vsftpd to apply the new configuration. Do you host websites (in /var/www/html/) and did you use your domain as a user name in the previous section? Then, you would set local_root=/var/www/html/$USER here, where you do not give permissions in that folder, but, for example, do give permissions to /var/www/html/$USER/public_html.for a Plex server), then you use local_root=/mnt/bigstorage/ (replace /mnt/bigstorage/ with the actual folder in which your Big Storage is mounted), where, for example, you remove the rights from /bigstorage/ and create a folder /mnt/bigstorage/plex to which you do grant users rights. For example, if you have linked Big Storage to your VPS and want to use it (e.g.In this example, it is the FTP folder in the home directory. local_root: the directory in which your FTP users end up.Debian 11.7 was released Saturday, 29th April 2023. Installation and upgrading instructions, More information. Debian 10.13 was released Saturday, 10th September 2022. user_sub_token=$USER: the name of the user who connects to your FTP server is used for the variable $USER Four Debian releases are available on the main site: Debian 10.13, or buster.Out-of-the-box, Debian 9 comes with Firewalld, in which all ports are closed by default. Save the changes and close the file using the key combination ctrl + x > y > enter. If you set the option to 'YES', the user list does not give permission, but it prohibits access to your FTP server. userlist_deny=NO: Only the user accounts in the user list file may log in to your FTP server.userlist_file=/etc/erlist: The location of the user list described above.userlist_enable=YES: Enables the vsftpd user list, with which you can give users permission or prohibit access to your FTP server.allow_writeable_chroot=YES: Allows FTP users to make changes to the chroot directory (i.e.a chroot jail) after logging in to your FTP server. chroot_local_user=YES: Places FTP users in their own home directory (i.e.anonymous_enable=NO: Prevents unidentified users from logging in to your FTP server.
