Click to See Complete Forum and Search --> : Shutting down services


Hairybloke
12-08-2000, 10:04 PM
First off, I am running Redhat 6.2. I have shut down some daemons by editing the inetd.conf file (telnet, and ftp), but I still have many services running such as these which I scanned with nmap:
smtp (25)
http (80)
linuxconf (98)
sunrpc (111)
printer (515)
unknown (919)
kdm (1024)
nterm (1026)
iad3 (1032)
X11 (6000)

My question is how do I shut down these services. I have been unable to find any information that really touches on this. If there is documentation where can I find it? The information I have found is either too basic, or talks more about not installing them.

Thanks for your time.

craft
12-08-2000, 10:17 PM
If your using Redhat you can just type in Setup and that will bring you to menu where you can set up services and a few other things like xwindows setup and such.

In the services section of setup you can choose what you want to load. You can stop most of the services you've listed from loading through there...

craft

chochem
12-09-2000, 01:12 AM
Well, you could use the:

/usr/sbin/ntsysv
(might be in a different directory)

command, but that will only turn stuff off in your inetd.conf file, but I'm assuming none of the stuff is running standalone.

Hairybloke
12-09-2000, 01:17 AM
I was able to shut them down with setup anywy, thanks.

chochem
12-09-2000, 01:18 AM
Oops, let me clear some stuff up too:

smtp (25) Email, most likely sendmail, turn it off if you don't use email <gasp>
http (80) Web server, most likely Apache, turn it off unless you are serving up webpages on your own machine
linuxconf (98) Web based linuxconf, turn it off, just use the regular linuxconf
sunrpc (111) Doh, I suck, not sure what it is, but its turned off on mine . . .
printer (515) Print Server, only needed if you print stuff . . . paperless office! jk
unknown (919) oops, unknown
kdm (1024) kde stuff? I don't use it, so again, I suck
nterm (1026) kde term? but again, I suck
iad3 (1032) man, I'm really sucking
X11 (6000) X server, don't turn it off unless you don't want to use X which means no desktop http://www.linuxnewbie.org/ubb/smile.gif

Anyways, I hope I helped some, where I didn't suck. Have a safe and happy holidays.

UltraMaroon
12-09-2000, 01:37 AM
No actually none of those need to be running unless you want to have them availible over a network or something

A_Lawn_GNOME
12-09-2000, 01:39 AM
Ahh jeez, here's what's going on.

inetd just controls access privileges. When you scan yourself, inetd ignores that because it is the local box. If you try from a different computer, you won't get the same results.

To truly, absolutely turn things off:
1) go to /etc/rc.d/rc.((your runlevel number here))
2) Move services from SXXService to KXXService
3) Run ./SXXService stop to shut it off

Runlevels for RH and Drake are 3 for command line and 5 for graphical login.

Also, get a firewall. Don't depend on inetd. When you do get one, set the default policy to REJECT not DENY. REJECT doesn't even give them an answer. DENY will let them know you're here.