remove ssh/apache etc from starting????

Soldato
Joined
17 Oct 2002
Posts
3,103
Hi,
I notice I have a lot of services opening ports on my pc. I'm behind a firewall and router but I was wandering if I could remove them from starting.
Code:
ftp                     
ssh                     
smtp                    
time                    
finger                  
http                    
sunrpc                  
auth                    
submission              
ipp                     
X11
 
cool :) I'll take a look

I seem to have rc.processname. e.g. rc.sshd and I only have rc.0 rc.4 and rc.6. rc.0 is a link to rc.6 and I can't find starting of sshd etc in 4 or 6 :(
 
Last edited:
Think I may have found the script initializing them. rc.M. I found this after searching thru the net.

Code:
    * rc.0 = The rc.0 file is a symlink to rc.6
    * rc.M = The init script for multi-user runlevels 2, 3, and 5
    * rc.K = The "administrative" runlevel, single user mode
    * rc.S = The system initialization script
    * rc.4 = The init script for runlevel 4, which is the runlevel that automatically boots into the X Session Manager of choice
    * rc.6 = The script executed by init when rebooting or halting the system

:) I'm gonna try it I guess ssh/httpd etc aren't needed for normal running of linux
 
I've removed loads of services now and only have a list of 4 net services.

Code:
sunrpc                  
auth                    
ipp                     
X11

I found sunrpc in /etc/inetd.config but it was disabled from starting so I don't know why that's still there but seems a lot better than it was and I thought I'd better disable ssh as it seems a bit risky to leave it running esp with this new linux virus which opens ssh :(

cheers for the help :D

nice to have the forum back up again :)
 
Originally posted by Shak
The way I did it for a quick fix was to get it to execute a script on my login that kills the services that i dont require. Alright it may be a bad way to sort it out but it wasnt my box and I only had 5 mins :p

Shak

Doesn't that mean the services would start and then stop ????

I removed PCMCIA also cos that seems to take a bit of time on startup :)
 
Back
Top Bottom