LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-27-2008, 03:45 PM   #1
sumanc
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore, India
Distribution: Ubuntu 9.04, Fedora 10
Posts: 23

Rep: Reputation: 15
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. Any suggestion?


Thanks and regards,
Suman Chakrabarty.
 
Old 03-27-2008, 06:09 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
assuming that you ARE root, then the only general angle i'd have is selinux. anythign from it in dmesg?
 
Old 03-27-2008, 06:32 PM   #3
sumanc
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore, India
Distribution: Ubuntu 9.04, Fedora 10
Posts: 23

Original Poster
Rep: Reputation: 15
Thumbs up

Quote:
Originally Posted by acid_kewpie View Post
assuming that you ARE root, then the only general angle i'd have is selinux. anythign from it in dmesg?

Yes, the problem was with selinux! "setenforce 0" solves the problem. I have not checked the dmesg yet.
 
Old 03-28-2008, 05:12 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
that is *NOT* a solution, that's a dangerous workaround...
 
Old 03-28-2008, 05:34 AM   #5
sumanc
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore, India
Distribution: Ubuntu 9.04, Fedora 10
Posts: 23

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by acid_kewpie View Post
that is *NOT* a solution, that's a dangerous workaround...

Certainly. But the machine is in an internal network and for my personal use. That is why I took the workaround.

While it is working now, can I ask you what would be the right way to really 'solve' the problem? Thanks.
 
Old 03-28-2008, 05:59 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well dmesg should show you the selinux violation. more often than not it's a case of using tools like chcon to correct selinux context errors rather than changing the underlying policy for selinux, although the latter is still a route to explore if need be.
 
  


Reply

Tags
fedora 8, ssh, sshd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied at /usr/sbin/ndiswrapper-1.9 line 152. CrinkElite Linux - Newbie 4 11-18-2007 07:53 PM
FC4-Starting sshd: Privilege separation user sshd does not exist FAILED kiranherekar Fedora 5 12-29-2005 03:22 PM
sshd starting twice ryedunn Linux - Software 4 01-30-2005 10:47 PM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 01:17 PM


All times are GMT -5. The time now is 12:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration