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: