Article Title: Use vftpd to set up a virtual Secure FTP server. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
We all know that the password verification on the FTP server is based on the plaintext, so it is easy to sniff. The virtual FTP server introduced in this article adopts the chroot method. Although it cannot prevent password sniffing, it can protect your system from cracking passwords even if they are sniffed.
In addition to the chroot function, the virtual FTP service also uses the second password database to verify the user. In this way, you do not need to create an FTP user account. Even if the password leaks, the user cannot log on to the system.
We use a daemon called vftpd to assume the role of a virtual FTP server. The main security features include:
-Always use chroot to process the user's home directory
-Allow users to access without shell
-VFTPD does not allow users to access/,/etc,/bin,/sbin,/usr/bin,/usr/sbin,/dev/,/lib,/tmp.
-The path of the Home directory cannot contain symbolic connections.
-Except root users with UID 0, other users are not allowed.
-The user's password file is not allowed to have write permissions on the group and others.
Installing vftpd is simple. The latest version is 6.5.8. After downloading it, tar xvfz..., make, and make install. :
Startuplinux.com/virtualftpd.html
Most of the configuration work is completed automatically. The only thing that needs to be modified is the/etc/ftppasswd file, which contains the user's real FTP account. The format of this file is basically the same as that of/etc/password. The format of each line is:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.