Linux boot prompt kernel panic-not syncing:attempted to kill init! Workaround:When the system starts, press the ' E ' key to enter the grub editing interface, edit the Grub menu, select the "Kernel/vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet" column, Press ' E ' key to enter edit, add enforcing=0 at the end, i.e.:Kernel/vmlinuz-2.6.23.1-42.fc8 ro root=/dev/vogroup00/logvol00 rhgb quiet enforcing=0Press ' B ' key to continue booting, OK to go forward smoothly.It is also pos
Today's work encountered problems, the new Linux server, PHP, Apache and a series of extensions installed, in the local good program moved up to hold the database connection error, but with the SQL command can connect up,Make a simple Judgment database Connection page or not, prove not a program problem, but the PHP where the problem, on the Internet to check the majority of days some methods are not the case after the accident found SELinux this thin
What we are sharing today may be that a lot of people feel that it is not meaningful, but it is not meaningless, but it is more cumbersome to use, because after the SELinux security policy is enabled, each application's access domain and file security tags need to be strictly matched to perform access operations, So if a bit of improper setting, it will cause the application error, but anything is double-sided, it is more cumbersome to set up at the s
SELinux (security-enhanced Linux) security-enhanced Linux is an implementation of mandatory access control (mandatory access controls). In this kind of control, Linux has a lot of operations that can be banned or unsuccessful. Before the installation of CentOS under the vsftpd how can not get up. Then the SELinux and then finished. All right, cut the crap, let's talk about how to get rid of
Familiar with SELinux Functions
Now, playing with the SELinux system has some value. For example, we use a strictly qualified ora Core 4 release. Most of these examples can basically run on Red hat Enterprise Linux version 4 or Fedora Core 5. Although it may be a little different, you may be able to run it using another release. "Getting SELinux example policy" d
CentOS5 close SELinux and use vim to open/etc/selinux/config. add a # sign in front of SELINUXenforcing and comment out it # SELINUXenforcing. then add a new line of SELINUXdisabled to save, exit, and restart the system. Run the "setup" command to start the text mode configuration utility. on the "Select
CentOS 5 completely disable SELinux
Use vim to open/etc/
client and can upload files to the upload directory. If it is still not possible to upload files in this directory, prompt does not have permission to check whether SELinux is closed, you can use the following instructions to turn off SELinux Modify the/etc/selinux/config file selinux= "" as disabled, and then restart
1 What when SELinuxSELinux, kernel-level enhanced firewall2 How to manage SELinux levelsSELinux turned on or off)Vim/etc/sysconfig/selinuxselinux=disabled## off Stateselinux=enforcing## Mandatory Stateselinux=permissive## Warning Statusgetenforce## View Statuswhen selinux is turned onSetenforce 0|1## changing the SELinux run level3. How to change the file securit
Disable Selinux#vi/etc/selinux/config to invalidate SELinux, execute the following command: #setenforce 0 Note: Setenforce is a Linux selinux firewall configuration command execution Setenforce 0Indicates that the SELinux firewall is turned off. The Setenforce command is the
Firewall:
To view the firewall status:Service Iptables Status
2. Shut down the firewall (permanent, after restarting the machine will also remain in effect)Chkconfig iptables off3. Turn on the firewall (permanent, after restarting the machine will also remain in effect)Chkconfig iptables on4. Temporarily shut down the firewall (fails after restarting the machine)Service Iptables off5. Temporarily turn on the firewall (fails after restarting the machine)Service Iptables onSELinux:
One:SELinux is the abbreviation for "security-enhanced linux", developed by the NSA "nsa=the National security agency" and SCC (secure Computing Corporation) An expanded mandatory access control security module for Linux. (Excerpt from Baidu Encyclopedia)SELinux has a choice of "disabled""permissive","enforcing"3.The default for my computer is enforcing.Check if SELinux is on command sestatus if the status
1. What is selinuxSELinux is a kernel-level, enhanced firewall
How to manage SELinux levelsVim/etc/sysconfig/selinuxSelinux=disabled ( off state ) /enforcing ( forced State ) /permissive ( warning State )Getenforce View Status when SELinux is in the open stateSetenforce 1|0 changing the selinux Run State
How to change the security context(Temporary change)
Disable SELinux CentOS 7This blog covers the basic steps to disable SELinux on CentOS 7First we need to see what SELinux is configured, issue the Sestatus commandSestatusAs can see the current mode was enforcing, issue the following command to disable itsed ' s/enforcing/disabled/g ' /etc/selinux/config/etc/
Ways to check the SELinux status:From:How to Check for whether SELinux is Enabled or Disabled (document ID 432988.1)There are 3 modes of SELinux:Enforcing (or known as enabled), Disabled or Permissive.Permissive mode loads the SELinux software, but doesn ' t enforce the rules, only logging is performed.You can use the following command to check the status of
1. Background notesSince the machine on which the KVM is located is enabled for SELinux and then shut down, the KVM virtual machine cannot be started and the error message during startup is as follows:[[email protected] ~]# Virsh start zabbixerror:failed to start domain zabbixerror:unsupported configuration:unable to F IND Security driver for label SELinuxThe logs in Libvirt also indicate an error:[[emailprotected]~]#tail-f/var/log/libvirt/libvirtd.lo
. View SELinux Status[Email protected] ~]# /usr/sbin/sestatus-vSELinux status:enabled//indicates that SELinux has been startedSELINUXFS Mount:/selinuxCurrent mode:enforcingMode from config file:enforcingPolicy version:24Policy from config file:targeted4. Turn off SELinux to modify the startup configuration fileVi/etc/selinux
In the normal environment, the most likely to forget iptables and SELinux, so that the environmental test failed, I believe there are many of the same experience with me. Well, this article is about the daily usage of these two.1. Clear the firewall command:[Email protected] ~]# iptables-f2, the use of SELinux:(1) Permanent entry ---need to restart the server[Email protected] ~]# Vim/etc/
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.