Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th March 2008, 08:49 PM
sumanc Offline
Registered User
 
Join Date: Dec 2007
Location: Bangalore, India
Age: 31
Posts: 6
Question 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.
Reply With Quote
  #2  
Old 27th March 2008, 09:02 PM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
Did you remove/reinstall sshd ?
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #3  
Old 27th March 2008, 09:04 PM
sumanc Offline
Registered User
 
Join Date: Dec 2007
Location: Bangalore, India
Age: 31
Posts: 6
Unhappy

Quote:
Originally Posted by Nokia
Did you remove/reinstall sshd ?

Yes, I have tried that already. No change!
Reply With Quote
  #4  
Old 27th March 2008, 10:13 PM
Nokia's Avatar
Nokia Offline
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
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #5  
Old 27th March 2008, 10:28 PM
sumanc Offline
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]
Reply With Quote
  #6  
Old 27th March 2008, 10:31 PM
Nokia's Avatar
Nokia Offline
Registered User
 
Join Date: Aug 2006
Location: /dev/realm/{Abba,Carpenters,...stage}
Posts: 3,286
Type
Quote:
setenforce 0
and try again. If it doesn't work type
Quote:
setenforce 1
.
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #7  
Old 27th March 2008, 10:36 PM
sumanc Offline
Registered User
 
Join Date: Dec 2007
Location: Bangalore, India
Age: 31
Posts: 6
Thumbs up

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!
Reply With Quote
  #8  
Old 27th March 2008, 10:46 PM
Nokia's Avatar
Nokia Offline
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.
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
  #9  
Old 28th March 2008, 06:24 AM
stevea's Avatar
stevea Offline
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 !
Reply With Quote
  #10  
Old 28th March 2008, 06:37 AM
Nokia's Avatar
Nokia Offline
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 ?
__________________
For safer browsing, use OpenDNS nameservers 208.67.222.222 and 208.67.220.220

SELinux User Guide

AutoPager
Reply With Quote
Reply

Tags
113, denied, line, or etc or initd or sshd, or usr or sbin or sshd, permission, sshd, starting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sshd not starting on bootup fishter Using Fedora 23 17th January 2008 10:35 AM
sshd public key auth permission denied. njmartin88 Using Fedora 0 17th August 2007 04:43 PM
sshd talkstock888 Servers & Networking 8 1st June 2006 11:33 AM


Current GMT-time: 19:41 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat