1836411 Members
2450 Online
110100 Solutions
New Discussion

disable rc deamons

 
Michael Murphy_2
Frequent Advisor

disable rc deamons

Hello - Security has requested that we disable the rc deamons (rexecd, rlogind) out of inetd.conf. I am thinking that if I change the conf file and nohup the inetd demon (to reread the conf file) - this will probably not stop the deamons. Does anyone know if this is the case, and know how to stop the deamons manually?
Thanks
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: disable rc deamons

What you stated is the easiest way.

Just comment out the login, shell and exec lines in /etc/inetd.conf and the do an 'inetd -c' to force inetd to re-read its config.

You are now done. Therre is no other way I know of to disable these.
Geoff Wild
Honored Contributor

Re: disable rc deamons

That is correct - just do a inetd -c when complete.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Vincente Fernandes
Valued Contributor

Re: disable rc deamons

That's the way of doing. Edit and comment out both the deamons and don't forget to run "inetd -c" to read the config file
Nguyen Anh Tien
Honored Contributor

Re: disable rc deamons

steps are:
1.vi /etc/inetd.conf
#rem 2 lines
#login stream tcp nowait root /usr/lbin/rlogind rlogind
shell stream tcp nowait root /usr/lbin/remshd remshd
#exec stream tcp nowait root /usr/lbin/rexecd rexecd

then save and exit
#inetd -c
NOW LOGIN AND EXEC NOLONGER WORKS.
HP is simple
Muthukumar_5
Honored Contributor

Re: disable rc deamons

You have to give SIGHUP (kill -1 PID) to inetd or inetd -c to reconfigure configuration file.
Easy to suggest when don't know about the problem!