selinux导致故障一例

selinux导致故障一例
这样的报错还是第一次遇到,排查过程没有头绪,一直纠结在child setpgid这个地方,还好在google过程中看到有人在设置selinux的时候的相关案例,于是想到从这方面入手。

原因为selinux开启导致的,但是比较诡异的是从别的terminal ssh 跳转过去之后无法执行任何操作,包括配置selinux,后来还是从后台远程管理口登陆上去之后设置并重启,彻底解决这个问题。


-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 root 4096 Dec 18 22:43 Desktop
drwxr-xr-x. 2 root root 4096 Dec 18 22:43 Documents
drwxr-xr-x. 2 root root 4096 Dec 18 22:43 Downloads
-?????????? ? ?    ?       ?            ? install.log
-?????????? ? ?    ?       ?            ? install.log.syslog
drwxr-xr-x. 2 root root 4096 Dec 18 22:43 Music
drwxr-xr-x. 2 root root 4096 Dec 18 22:43 Pictures
drwxr-xr-x. 2 root 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 root 4096 Dec 18 22:43 Templates
drwxr-xr-x. 2 root root 4096 Dec 18 22:43 Videos
-bash-4.3# 

-EOF-

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值