 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

27th March 2008, 08:49 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Location: Bangalore, India
Age: 31
Posts: 6

|
|
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied
Hi,
I am running Fedore 8 (x86_64) on Intel Core 2 Duo machine. I have openssh-server.x86_64 version 4.7p1-2.fc8 installed.
When I attempt to start the SSH server as root by using the command '/etc/init.d/sshd start', I get the following message:
================================================== =================================
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied
[FAILED]
================================================== =================================
The line 113 in /etc/init.d/sshd contains: '$SSHD $OPTIONS && success || failure'
I am not being able to find out the problem. I have run previously the i386 version on a 32 bit machine perfectly before. Is there any known problem with the 64 bit version? Any suggestion?
Thanks and regards,
Suman Chakrabarty.
|

27th March 2008, 09:02 PM
|
 |
Registered User
|
|
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286

|
|
|
Did you remove/reinstall sshd ?
|

27th March 2008, 09:04 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Location: Bangalore, India
Age: 31
Posts: 6

|
|
Quote:
|
Originally Posted by Nokia
Did you remove/reinstall sshd ?
|
Yes, I have tried that already. No change!
|

27th March 2008, 10:13 PM
|
 |
Registered User
|
|
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286

|
|
Did you try
Quote:
su -l
/etc/init.d/sshd restart
|
|

27th March 2008, 10:28 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Location: Bangalore, India
Age: 31
Posts: 6

|
|
|
/etc/init.d/sshd restart
Stopping sshd: [FAILED]
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied
[FAILED]
|

27th March 2008, 10:31 PM
|
 |
Registered User
|
|
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286

|
|
Type and try again. If it doesn't work type .
|

27th March 2008, 10:36 PM
|
|
Registered User
|
|
Join Date: Dec 2007
Location: Bangalore, India
Age: 31
Posts: 6

|
|
Yes!!! "setenforce 0" did the trick! What is the working principle behind it? Shall I have do repeat the same thing on next reboot?
Thanks a lot!
|

27th March 2008, 10:46 PM
|
 |
Registered User
|
|
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286

|
|
Do the following
Quote:
su -l
touch /.autorelabel
|
Then reboot and check if it still works.
|

28th March 2008, 06:24 AM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,346

|
|
|
pr -n /etc/init.d/sshd | grep 113
113 [ "$RETVAL" = 0 ] && touch /var/lock/subsys/sshd
It was the lock file !
|

28th March 2008, 06:37 AM
|
 |
Registered User
|
|
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286

|
|
|
Then why did it work after disabling SElinux ? Simple coincidence ? Why the lock file remained while uninstalling/reinstalling ?
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 19:41 (Wednesday, 19-06-2013)
|
|
 |
 |
 |
 |
|
|