Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

inetc.conf hel pls 1

Status
Not open for further replies.

Murugs

Technical User
Jun 24, 2002
549
US
Hello Everybody

I was trying to use rsh (remote shell) from my NT to my UNIX box and started the services of rsh daemon by removing the comments line from the /etc/inetd.conf file for the rshdaemon.

I am trying the same from my NT to redhat linux machine.
I am trying to find inetd.conf file and unable to do so.
I understand in redhat 7.0 it is changed to xinetd.conf.

But In the xinetd.conf file I am unable to locate the rsh daemon line. In which conf file are these services located.
Also If I need to stop ftp,telnet services to my linux machine in which file I need to go and do the modifications.

Regards
Murugs
 
You'll notice that at the end of the /etc/xinetd.conf file is this line...

includedir /etc/xinetd.d

This means to look in that directory. If you cd over to /etc/xinetd.d, you see your services in there. You have to edit each file to enable or disable it.

[root@penguin xinetd.d]# less telnet
# default: on
# description: The telnet server serves telnet sessions; it uses # unencrypted username/password pairs for authentication.
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}


See where is says disable = yes? Thats what you have to change. I just tested in on my RH71 box.


ChrisP ---------------------------------------
If someone's post was helpful to you, please click the box "Click here to mark this post as a helpful or expert post".
 
By the way, I use ssh over rsh. You can download it from
ChrisP ---------------------------------------
If someone's post was helpful to you, please click the box "Click here to mark this post as a helpful or expert post".
 
Hi Fluid11
Thx for the response.
I have changed my rsh from disable = yes to disable = no.
But now I need to restart the xinetd.conf file so that it reads my changed parameters.
If I do a ps -ef | grep inetd
I am not able to figure it out.
How do I restart the new service so that the changes may come in to effect.

Regards
Murugs
 
/sbin/service xinetd restart

The service command reads file in /etc/rc.d/init.d. Its easier than doing a /etc/rc.d/init.d/xinetd restart.

ChrisP ---------------------------------------
If someone's post was helpful to you, please click the box "Click here to mark this post as a helpful or expert post".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top