往Linux系統中上傳文件時候,我們經常會使用FTP連接Linux,也經常會使用mkdir命令來創建目錄。最近發現用mkdir創建目錄時提示550 Create directory operation failed(創建目錄失敗)。需要改一個配置文件即可。
[root@cc ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=enforcing 將此處的默認值改成disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted
然后重啟服務器