LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-29-2004, 11:57 PM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Sshd is auto-activated without any reasons. Bug or hack?


I've been looking at top command today, and i've seen sshd, but i didn't activated it in the installation setup because i don't use it. So i've killed it and went to pkgtool to rerun services config to verify and i was surprised to see sshd selected. I had the same problem at work, but i though it was my boss who did that to spy me, because he had my passwords (i've installed myself this PC too and didn't activated ssh too). Now i'm asking myself (and you) if it's a bug or a hack.
 
Old 09-29-2004, 11:59 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Maybe a update overwrote the script and make it executable.
You could also accidentally could typed: chmod +x ./ and press enter without completing the filename.

Edit: I've just checked the first one, and latest openssh package comes with the /etc/rc.d/rc.sshd script executable by default (it's not a bug, but it's not a good thing also).

Last edited by gbonvehi; 09-30-2004 at 12:13 AM.
 
Old 09-30-2004, 12:09 AM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Thx. I've take a look if i can remove the ssh package but there's no one!!!!!!
The fact is i'm behing a firewall that don't let my pc hosts any server. Can ssh pass through?
 
Old 09-30-2004, 12:12 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
To block ssh connections you should have port 22 blocked.
The package is called openssh but be sure if you want to remove it, because it also contains the client.
 
Old 09-30-2004, 12:55 AM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Well, i'm not going to remove it because i want to learn it, but i'm still anxious... So i'll "top" every 5 minutes . Bug or hack, that is the linuxquestion...
 
Old 09-30-2004, 01:52 AM   #6
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
If the /etc/rc.d/rc.sshd script is not marked executable, it will not start on boot.

Someone has to be remotely starting it.. but to do that, you've got to have sshd or telnet enabled, more than likely. So it's kind of a chicken/egg thing.

First, chmod -x /etc/rc.d/rc.sshd
Then, you can also disable inetd which might be configured to start telnet on demand as well.

I'll bet it just gets started every boot and you havent' realized it.

--Shade
 
Old 09-30-2004, 01:30 PM   #7
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
No i don't think, because i often install slack and i never activate this, and i check often top, so i never see this before. I think it's a bug. I hope it's a bug.
 
Old 09-30-2004, 04:40 PM   #8
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
It's not a bug. sshd is auto started by default with a fresh install.
You can choose on install to disable it, but it does start by default.

--Shade
 
Old 09-30-2004, 05:53 PM   #9
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
So this is some kind of bug... I'm curious to verify that on my next install. Thx all 4 your answers.
 
Old 09-30-2004, 10:40 PM   #10
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
It's not a bug.

I suggest you check these things:

make sure /etc/rc.d/rc.sshd is not set as executable.
You could also comment out the section that starts rc.sshd in /etc/rc.inet2
After a reboot, check to see immediately if sshd is running.
Code:
ps -aux |grep sshd
You could also change the permissions of /sbin/sshd to unexecutable.
Code:
chmod -x /sbin/sshd
Can I say again, this isn't a bug?

--Shade
 
Old 12-22-2004, 07:30 PM   #11
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
I got the answer!!! Ssh daemon is reactivated after an update (swaret or slackpkg).
Thx all.
 
Old 12-22-2004, 10:32 PM   #12
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
That's one problem with the auto updaters. Things happen on your system and the operator has no clue. Even if you are going to use these, you need to read the changelogs to see what was done.
 
Old 12-22-2004, 11:24 PM   #13
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
hehe... this reminds me of when ftpd was started by default with slack 9.1. I must have had that running for a good 5 months before catching it on and shutting it off.
 
  


Reply



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
Shutdown reasons asifqaiyum Linux - General 1 08-19-2005 08:33 AM
Reasons to upgrade ionmich SUSE / openSUSE 1 07-18-2005 04:14 AM
Free86 bug or nVidia bug?? ProtoformX Linux - Software 2 05-12-2004 02:38 AM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 12:17 PM
Reasons behind using Linux plisken Linux - General 18 05-20-2003 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:23 AM.

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
Open Source Consulting | Domain Registration