linux打开ftp功能的方法(Methods Linux open FTP function)
linux打开ftp功能的方法(Methods Linux open FTP function)
You can install the VSFTP server of its own, very good use, the specific configuration is as follows:
A basic
The 1. configuration files in /etc/vsftpd/vsftpd.conf
/etc/vsftpd.ftpusers
/etc/vsftpd.user_list
2. background process: vsftpd
3. The use of 21. 20 port
21 for control, 20 for data transmission
4. Journal:
/var/log/vsftpd.log xferlog
Only record data
5. The ftpcount ftpwho tool, little effect.
Two, configuration parameters
1. Allow anonymous login
# Allow anonymous FTP?
Anonymous_enable=no
2. Login timeout control
May change the default # You value for timing out an idle session.
Idle_session_timeout=600
3. Data transmission timeout control
May change the default # You value for timing out a data connection.
#data_connection_timeout=120
4. Custom welcome message
You may fully customise the login # banner string:
Ftpd_banner=Welcome to youhongyu FTP service.
Three, access control key configuration method
1. Modify the vsftpd.conf (* * * * chroot****)
Chroot_list_enable=YES
Chroot_list_file=/etc/vsftpd.chroot_list (if not, you need to create)
/etc/vsftpd.chroot_list user is not a chroot user, the user only in their own directory (/home)
2. The access control of user files
/etc/vsftpd.ftpusers
All in the file users are unable to access the ftp,
But to introduce the following is different when you visit, but not at 530 Permission denied. at 530 Login incorrect.
3. The access control of user files (note the need vsftpd.conf configuration to fit)
/etc/vsftpd.user_list
Remember: to make this file function userlist_enable=yes must be configured otherwise ineffective (default is open)
So when userlist_enable=yes, userlist_deny=yes (/etc/vsftpd.user_list in the need to manually add) users can not access FTP
When userlist_enable=yes, userlist_deny=no (the need to manually add) is only /etc/vsftpd.user_list users can access FTP
2, and 3 if it comes to the same user to or the principle of application, as long as there is a