1. Disable selinux Security Enhanced Linux (SELinux, Security-Enhanced Linux) is a mandatory access control implementation. View selinux status: getenforce SELinux supports three modes: • enforcing: Forced mode, which indicates that SELinux is in operation and has correctly started to limit domain/type; • permissive: tolerant mode: It indicates that SELinux is in operation, but there is only a warning message that does not actually limit access to domain/type. This mode can be used for SELinux debug; www.2cto.com • disabled: disabled, SELinux does not actually work. Modify/etc/sysconfig/selinux and disable: SELINUX = disabled or: setsebool ftpd_disable_trans 1 # setsebool-P ftp_home_dir 1 # service vsftpd restart reboot 2. run the getsebool ftpd_disable_trans command to check the current status. If it is not on, enter the setsebool ftpd_disable_trans 1 command. Of course, you can also add the-P Parameter so that you do not need to enter this command at each boot. if the smb service also encounters the same problem, modify/etc/vsftpd. conf vi/etc/vsftpd. conf # enable/disable anonymous users from accessing anonymous_enable = NO # allow local users to log on and allow them to upload files local_enable = YES write_enable = YES # Lock local users in their home directories, you are not allowed to switch to the chroot_local_user = YESchroot_list_enable = YES · New/etc/vsftpd/chroot_list vi/etc/vsftpd/chroot_list to add www.2cto.com storage in the upper-level directory, you can switch any path. Otherwise, it will be restricted to the home directory. · Set boot auto-start: chkconfig vsftpd on service vsftpd start enable service vsftpd sttp stop service vsftpd restart author Cloud123