centos6.4 Viewing and closing SELinux

Source: Internet
Author: User

    1. After installing the VSFTPD service, client login FTP error:

Ftp> Open 127.0.0.1Connected to 127.0.0.1 (127.0.0.1). (VsFTPd 2.2.2) Name (127.0.0.1:wander): ftpuser331 please SPE Cify the password. password:500 oops:cannot Change Directory:/home/ftpuserlogin failed.

The reason is that the system does not shut down SELinux


To view the SELinux status:

[[email protected] ~]$/usr/sbin/sestatus-v SELinux status:disabled//disable Selinux[[email protected] ~]$ g                                Etenforce Disabled//disable Selinux[[email protected]. ssh]$ Getenforce Enforcing Start

To close the SELinux method:

#setenforce 0 #设置SELinux become permissive mode #setenforce 1 set SELinux to be enforcing mode

The second method:

#vim/etc/selinux/config Edit Files # This file controls the state of SELinux in the system.# selinux= can take one of the these THR EE values:# enforcing-selinux Security policy is enforced.# permissive-selinux prints warnings instead of enfo rcing.# disabled-no SELinux policy is loaded. selinux=enforcing# Selinuxtype= can take one of these, values:# targeted-targeted processes is protected,# m Ls-multi level Security protection.


Change the selinux=enforceing to selinux=disabled restart the machine on the OK


Reference: http://www.jb51.net/LINUXjishu/192576.html

This article is from the "Wonder--wander" blog, make sure to keep this source http://wonderwander.blog.51cto.com/9831934/1618262

centos6.4 Viewing and closing SELinux

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.