Troubleshooting instance caused by SELinux

Source: Internet
Author: User

Troubleshooting instance caused by SELinux

This was the first time we encountered such an error. We had no clue about the troubleshooting process and had been entangled in the child setpgid. We can also see some cases when setting selinux in the google process, so I want to start from this aspect.

The reason is that selinux is enabled, but it is strange that after redirecting from other terminal ssh, no operation can be performed, including configuring selinux, after logging on to the Remote Management port in the background, set and restart the system to completely solve the problem.

-Bash-4.3 # ls
-Bash: child setpgid (16790 to 16790): Permission denied
Ls: cannot access RHEL6.2-20111117.0: Server-ppc64-DVD1.iso: Permission denied
Ls: cannot access rhel-server-6.2-x86_64-dvd.iso: Permission denied
Ls: cannot access install. log. syslog: Permission denied
Ls: cannot access anaconda-ks.cfg: Permission denied
Ls: cannot access install. log: Permission denied
Anaconda-ks.cfg Documents install. log Music Public rhel-server-6.2-x86_64-dvd.iso Videos
Desktop Downloads install. log. syslog Pictures RHEL6.2-20111117.0-Server-ppc64-DVD1.iso Templates
-Bash-4.3 # su-streamsadmin
-Bash: child setpgid (16792 to 16792): Permission denied
-Bash: su: command not found
-Bash-4.3 # top
-Bash: child setpgid (16793 to 16793): Permission denied

Top: failed tty set: Input/output error
-Bash-4.3 # free-m
-Bash: child setpgid (16794 to 16794): Permission denied
Total used free shared buffers cached
Mem: 129045 18018 111026 0 227 15605
-/+ Buffers/cache: 2186 126859
Swap: 10239 0 10239
-Bash-4.3 # cat. bash_profile
-Bash: child setpgid (16796 to 16796): Permission denied
Cat:. bash_profile: Permission denied
-Bash-4.3 # ls-l
-Bash: child setpgid (16803 to 16803): Permission denied
Ls: cannot access RHEL6.2-20111117.0: Server-ppc64-DVD1.iso: Permission denied
Ls: cannot access rhel-server-6.2-x86_64-dvd.iso: Permission denied
Ls: cannot access install. log. syslog: Permission denied
Ls: cannot access anaconda-ks.cfg: Permission denied
Ls: cannot access install. log: Permission denied
Total 32
-?????????? ? ? ? ? ? Anaconda-ks.cfg
Drwxr-xr-x. 2 root 4096 Dec 18 22:43 Desktop
Drwxr-xr-x. 2 root 4096 Dec 18 Documents
Drwxr-xr-x. 2 root 4096 Dec 18 22:43 Downloads
-?????????? ? ? ? ? ? Install. log
-?????????? ? ? ? ? ? Install. log. syslog
Drwxr-xr-x. 2 root 4096 Dec 18 22:43 Music
Drwxr-xr-x. 2 root 4096 Dec 18 22:43 Pictures
Drwxr-xr-x. 2 root 4096 Dec 18 22:43 Public
-?????????? ? ? ? ? ? RHEL6.2-20111117.0 Server-ppc64-DVD1.iso
-?????????? ? ? ? ? ? Rhel-server-6.2-x86_64-dvd.iso
Drwxr-xr-x. 2 root 4096 Dec 18 22:43 Templates
Drwxr-xr-x. 2 root 4096 Dec 18 Videos
-Bash-4.3 #

-EOF-

Security Context of SELinux

An SSH Public Key Authentication Failure Caused by SELinux

Getting started with SELinux

Simple SELinux Configuration

How to quickly disable SELinux in CentOS

This article permanently updates the link address:

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.