Problems encountered during vsftpd installation.
Environment: centos63
1. Installation: Yum install vsfptd
2. Open Port 21:/sbin/iptables-I input-P TCP -- dport 21-J accept
3. When filezilla is connected, you must set the character set and use the active mode connection.
Character Set to UTF-8 (client to Vista/win7)
The following is a reference to "filezilla opens FTP and" failed to read directory list"
This usually occurs on the Vista/win7 system, which was not found on XP before. In general, whether the FTP is opened with garbled characters or "failed to read the Directory List" is caused by the character set. Our windows system uses the GBK code by default (only Chinese characters and Latin characters are supported), while the FTP server, utf8 code is used for better character compatibility (in Hong Kong and Taiwan, even the name is "Wanguo Code") to display all possible languages. However, in GBK and utf8 codes, the representation of the same word is different, in this way, the normal text under the utf8 code is not displayed normally when it reaches the GBK code (it may be garbled or other characters). To solve this problem, you need to specify a character set (encoding method) for the FTP client. Currently, only filezilla has this function, which is why filezilla is specified as the client (and this software is an open source software, the most affordable benefit is free ). The solution to Garbled text is as follows: click "file"> "Site Manager" in the menu, and click "New Site" in the lower-left corner of the new window, in the "new site" in the list on the left, change the name to FTP (or anything else), and then in the "host" on the right) ", fill in ftp.nacta.edu.cn, and keep others by default. Click character set in the last tab on the right and select" Force utf8 (Force utf8 )". After the settings are complete, click Connect to connect to the FTP server. You do not need to enter the address in the future. You only need to click the down arrow next to the first icon in the toolbar, select the configuration you just created to connect. Currently, it is found that this setting is only required in Vista/win7. In XP, it seems that this setting will lead to errors (what Microsoft does is too depressing... Neither Mac nor Linux does)
If it is set
Chroot_local_user = Yes
Chroot_list_enable = Yes (this line can be unavailable or available)
Chroot_list_file =/etc/vsftpd. chroot_list
All users added to the file vsftpd. chroot_list are unrestricted.
That is, you can view the parent directory of the home directory.
Therefore, if you do not want a user to browse the contents in the upper-level directory of the user's home directory, you can set
This user is not added to the file vsftpd. chroot_list (in this case, users in this file can browse directories outside their home directories ).
Or, set as follows:
Chroot_local_user = No
Chroot_list_enable = Yes (this line must be available, otherwise the file vsftpd. chroot_list will not work)
Chroot_list_file =/etc/vsftpd. chroot_list
Then, add all users who do not want to have the permission to browse the directories on their home directories to the file vsftpd. chroot_list (in this case, users in this file cannot browse directories outside their home directories)
).