1756696 Members
3455 Online
108852 Solutions
New Discussion юеВ

Disabling Services

 
SOLVED
Go to solution
Mike Waibel
Advisor

Disabling Services

What is the easiest way to disable services?
SNMP, Tooltalk, RPC nlockmgr, RPC llockmgr.



Is there a way to tell if these services are running?
8 REPLIES 8
Arunvijai_4
Honored Contributor
Solution

Re: Disabling Services

Hi Mike,

You need to look into /sbin/init.d/ for these services. To stop, # /sbin/init.d/ stop

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mike Waibel
Advisor

Re: Disabling Services

Thanks...

How do I keep them from running when I reboot the machine?
Tiziano Contorno _
Valued Contributor

Re: Disabling Services

In /etc/rc.config.d/*
you will find config files, and toggle variables defined in this files (0,1) to make them start at boot.
In /etc/rc.config.d/netdaemons you'll find net services and also look at /etc/inetd.conf where basics net services are configured.

Regards.
Tiziano Contorno _
Valued Contributor

Re: Disabling Services

To disable a net service defined in /etc/inetd.conf simple comment its line with a "#".
Regards.
Arunvijai_4
Honored Contributor

Re: Disabling Services

Hi Mike,

You need to edit /etc/rc2.d/ or /etc/rc.config.d/ and make it disable from reboot.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Mike Waibel
Advisor

Re: Disabling Services

Thanks again!!!

I have more questions--

What, if anything, does the /etc/services file have to do with services running?

And will disabling the services at startup prevent applications or users from invoking them later. I want to totally disable this stuff.

Kenan Erdey
Honored Contributor

Re: Disabling Services

perhaps, you can delete lines in /etc/rpc file that show that services.
Computers have lots of memory but no imagination
Tiziano Contorno _
Valued Contributor

Re: Disabling Services

/etc/services simply map a port to a name, better to understand.
i.e. the system will refer to the name instead to the port number if it is present in /etc/services:

netstat -a | grep LIST | tail -1
tcp 0 0 *.smtp *.* LISTEN

Now with -n options you see the actual port number:
tcp 0 0 *.25 *.* LISTEN

As long the user is a normal user, he cannot start any of the system processes / services.

Regards.
Pease remember to assign points if we deserve them ;)