1. disabling selinux Security enhanced Linux (SELinux, Security-EnhancedLinux) is an implementation of mandatory access control (mandatoryaccesscontrol. View selinux status: getenforceSELinux supports three modes: & amp ;... 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
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.