Operating System - HP-UX
1832645 Members
2830 Online
110043 Solutions
New Discussion

How to stop dce permanently

 
yc_2
Regular Advisor

How to stop dce permanently

Hi,

I was asked by my security folk to stop the service that using port 135. With lsof, I traced dce is using this port. I managed to stop it manually:
/sbin/init.d/dce stop.

How do I make this permanently so that it will not start up in the next reboot?

Before I stopped dce manually, the setting for DCED is 0 in /etc/rc.config.d/dce.

Thanks in advance,
YC
6 REPLIES 6
Ravi_8
Honored Contributor

Re: How to stop dce permanently

Hi,

/etc/rc.config.d/dce

in this file set he flag DCED=0
never give up
Henk Geurts
Esteemed Contributor

Re: How to stop dce permanently

you can disable the port;
remove the entry in /etc/services

regards.
Mark Nieuwboer
Esteemed Contributor

Re: How to stop dce permanently

remove the link S570dce -> /sbin/init.d/dce
from /sbin/rc2.d/

grtz. Mark
Henk Geurts
Esteemed Contributor

Re: How to stop dce permanently

renaming both stop and start is even safer:

mv /sbin/rc2.d/S570dce /sbin/rc2.d/s570dce
mv /sbin/rc1.d/K430dce /sbin/rc1.d/k430dce

regards.
Henk
Gordon  Morrison
Trusted Contributor

Re: How to stop dce permanently

All of the above will work, but anyone with enough knowlege & privileges can re-activate it in less than 1 minute. If you're certain you don't want DCE to run under any circumstances, uninstall it. (They could always re-install it, but it would have to be a deliberate act, not just someone who thought "Sheesh! Some twit installed DCE, then never bothered to configure it! I'd better do it now.")
What does this button do?
yc_2
Regular Advisor

Re: How to stop dce permanently

Hi Ravi,

The setting was DCED=0 before I stopped dce.


Rgds,
YC