LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-30-2004, 02:59 PM   #1
Obie
Member
 
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Rep: Reputation: 30
Inetd & Xinetd


I came across a book recently that suggested that I disabled inetd or xinetd and run the daemons as their own process due to the possible insecurities of both super servers.

1) Is this viable?
2) How can I go about doing so?

Thank you.
 
Old 09-30-2004, 04:27 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Re: Inetd & Xinetd

I came across a book recently that suggested that I disabled inetd or xinetd and run the daemons as their own process due to the possible insecurities of both super servers.

1) Is this viable?

Sure. Both of them have had security problems in the past, so having one less internet daemon that can potentially be exploited is a good thing in general (same logic as shutting off un-necessary services). Though xinetd does do some cool things that can be used to improve your systems security. For example you can use hosts.allow/deny without having to depend on the application having it built in, it's ability to restrict access is much more flexible that with iptables, and much more. Plus on low traffic systems, xinetd will reduce the amount of resources consumed in having the indivual daemon processes up and listening for connections.

2) How can I go about doing so?
Turn off xinted. Configure the applications to run as a stand-alone process. On most recent versions of RedHat, only a few daemons run through xinted and these are potentially dangerous to run at all, so turning xinted off is recommended.
 
Old 09-30-2004, 04:38 PM   #3
Obie
Member
 
Registered: Apr 2004
Distribution: Red Hat
Posts: 290

Original Poster
Rep: Reputation: 30
Capt_Caveman,

Thank you for the indepth reply. How do I know which daemons use xinetd? Also is it possible to run xinetd but restrict access to it?

You also mentioned that "only a few daemons run through xinted and these are potentially dangerous to run at all", which daemons would these be?
 
Old 09-30-2004, 04:57 PM   #4
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
On a Redhat-ish system, you can just use chkconfig --list and it will produce a list of services and their status along with a sub-list at the bottom for xinetd and all the services that are configured to run through xinetd. Probably two of the more dangerous ones are chargen and echo which can be abused in a classic DoS attack.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Inetd or Xinetd? allelopath Linux - Software 2 04-13-2005 01:03 PM
xinetd vs inetd alaios Linux - Security 6 05-01-2004 11:30 AM
inetd vs xinetd nero64 Linux - Newbie 1 11-26-2002 08:13 AM
inetd VS xinetd dave4545 Linux - Newbie 22 10-24-2002 07:07 PM
Xinetd vs. Inetd JHuizingh Linux - General 2 07-19-2002 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration