Description: On a fresh OS install of Fedora 8 (leaked from a mirror), the sshd service starts up at boot time, but can not be restarted afterward by the initscript: [root@hammer ~]# service sshd status sshd (pid 1900) is running... [root@hammer ~]# service sshd restart Stopping sshd: [ OK ] Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied [FAILED] [root@hammer ~]# service sshd start Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied [FAILED] [root@hammer ~]# service sshd start Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied [FAILED] Version-Release number of selected component (if applicable): [root@hammer ~]# rpm -qa |grep openssh openssh-server-4.7p1-2.fc8 openssh-4.7p1-2.fc8 openssh-askpass-4.7p1-2.fc8 openssh-clients-4.7p1-2.fc8 How reproducible: 100% Additional information: If I just run "/usr/sbin/sshd" by itself, it does start up, but of course not without the commandline arguments it normally starts with, etc.
SELinux status: enabled SELinuxfs mount: /selinux Current mode: enforcing Mode from config file: enforcing Policy version: 21 Policy from config file: targeted
selinux-policy-3.0.8-44.fc8 selinux-policy-targeted-3.0.8-44.fc8 setroubleshoot-plugins-1.10.3-1.fc8 setroubleshoot-1.10.7-1.fc8 setroubleshoot-server-1.10.7-1.fc8
Created attachment 248511 [details] SElinux audit log
[root@hammer tmp]# restorecon /usr/sbin/sshd [root@hammer tmp]# restorecon /etc/init.d/sshd [root@hammer tmp]# service sshd restart Stopping sshd: [FAILED] Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied [FAILED]
Could be a duplicate of bug 364971 - can you try the fix mentioned there?
This affected me as well, but Dan Walsh's fix from https://bugzilla.redhat.com/show_bug.cgi?id=364971#c5 did the trick: [root@nano ~]# setenforce 0 [root@nano ~]# /etc/init.d/sshd restart Stopping sshd: [FAILED] Starting sshd: [ OK ] [root@nano ~]# setenforce 1 [root@nano ~]# /etc/init.d/sshd restart Stopping sshd: [ OK ] Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied [FAILED] [root@nano ~]# semanage user -m -r s0-s0:c0.c1023 unconfined_u [root@nano ~]# /etc/init.d/sshd restart Stopping sshd: [FAILED] Starting sshd: [ OK ]
*** This bug has been marked as a duplicate of 364971 ***