vsftpd stands for Very Secure FTP Daemon. It's a lightweight FTP server. This short tutorial explains how to install vsftpd on Debian or Ubuntu. The commands in this tutorial require root privileges.
Step 1: Installation
Run the following command to install vsftpd:
apt-get install vsftpd
Step 2: Configuration
Open up the configuration file using your text editor of choice. This example uses
vsftpd allows anonymous users to access the server by default. This feature could be considered a security vulnerability. We will disable anonymous login by changing the following line:
To allow local user login, uncomment the following line:
To enable uploading, uncomment the following line:
Save the file and close your text editor. Then, start vsftpd as a daemon:
service vsftpd start
At this point, you can log in your ftp server from your local computer.
If you want to prevent all local users from leaving their home directory, you need to uncomment this line from
As of vsftpd 2.3.5, the chroot directory must not be writable. You can change the permissions of this folder with the following command:
chmod a-w /home/user
Remember to restart the
vsftpd daemon after editing
service vsftpd restart
Link - 淘实惠-使用采购网站
This article was created by DieDie
This work is licensed under a Creative Commons Attribution 4.0 International License.
This article source Setup vsFTPd on Debian/Ubuntu
Last Modified Apr 6, 2019 at 12:56 am