
write_enable=YES chroot_local_user=YES allow_writeable_chroot=YESĪdditionally, you can limit the local users who can access and upload files by specifying only the users contained in the erlist file. Next, you need to allow the local user to upload files and gain access to their home directory as well as make changes to the files as indicated. Therefore, we will disable login by the anonymous user and only grant access to the local user. But this is not what we want due to security purposes. By default, anonymous users are granted access. There are a couple of settings that you need to ensure are set.


Proceed and edit the main configuration file - /etc/nf. sudo mkdir -p /home/ftpuser/ftp_dir/upload sudo chmod 550 /home/newftpuser/ftp_dir sudo chmod -R 750 /home/ftpuser/ftp_dir/upload sudo chown -R ftpuser: /home/ftpuser/ftp_dir Step 5: Configure vsftpdĪ few extra steps are required before we can log in and start interacting with the server. Next, create an FTP directory for the FTP user and assign the appropriate directory permissions and ownership.
