LinuxQuestions.org
Help answer threads with 0 replies.
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-16-2004, 12:08 AM   #1
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Why is inetd listening?


I'm just curious why inetd is listening on a port? Here's the output of netstat -ap:

tcp 0 0 *:988 *:* LISTEN 812/inetd

I guess I found what I was looking for - it listens and tranfers incoming connections to the services listed in /etc/services...is that right? If so, why are other services listening on their own? If it's the only service listening according to a portscan with nmap is it alright to shut it down? What surprises me is that nmap couldn't identify it. Isn't it common enough to be a known process?

Thanks for any help.

Last edited by Vincent_Vega; 09-16-2004 at 12:15 AM.
 
Old 09-16-2004, 12:22 AM   #2
korozion
Member
 
Registered: Apr 2004
Location: Canada
Distribution: Debian
Posts: 124

Rep: Reputation: 15
ident is mostly used in IRC to identify you. Most people don't use it unless they are using IRC
 
Old 09-16-2004, 02:05 AM   #3
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Original Poster
Rep: Reputation: 31
Thanks for that info but I'm looking at INETD. I have ident disabled and just about everything else but inetd is still coming up as an unknown process when I nmap my computer. I tracked it down to see what the process was which was simple enough but now I'm just trying to figure out what the story is behind it and if I shoud keep it running.
 
Old 09-16-2004, 02:22 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
It's not inetd that listens to port 988. It's a service that it is started from inetd. Check /etc/inetd.conf to see what services are started from it and disable the ones you don't need
 
Old 09-16-2004, 02:40 AM   #5
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Original Poster
Rep: Reputation: 31
You're right. I went in, commented it all out, what very few I had remaining, restarted inetd and nmap shows nothing.
Are there any processes that must run?

Thanks for helping me out.
 
Old 09-16-2004, 02:47 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Not necessarily. Only if you want a service (ftp for example) then you must uncomment the relevant line in /etc/inetd.conf to enable it.
Regards.
 
Old 09-16-2004, 10:29 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Basically, you can run daemons as standalone eg httpd, sshd or you can run them via (x)inetd.
Loosely speaking, high traffic daemons run on their own, low traffic ones are called by (x)inetd, which listens on their behalf.
There are exceptions eg sshd.
Standalone daemons have their own stop/start controls, the others are controlled by the files in eg /etc/xinetd.d. Just set disable to yes for any you don't want (that are in xinetd area).
Some distros still use (older) inetd daemon, others use the newer xinetd.
HTH
 
Old 09-16-2004, 03:19 PM   #8
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Original Poster
Rep: Reputation: 31
I'm using Slack 9.1 so I have inetd. I just commented out the ones I didn't want and that seemed to do it. I just expected something listed in inetd by default to be identified by nmap. That's sort of where the confusion came in but I think I'm understanding it all now.
Thanks for the posts. Any other information about this that I should know?
 
Old 09-17-2004, 12:38 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
This will be informative
netstat -l -Ainet
 
  


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
Ldap is listening but won't do anything Homer Glemkin Linux - Software 1 12-31-2004 02:10 PM
Sendmail not listening eggoz Linux - Software 6 09-06-2004 04:08 AM
Listening to Radio idor Linux - Software 0 08-15-2003 09:40 AM
chrooting or jailing inetd or inetd started daemons ? MasterC Linux - Security 2 07-15-2003 05:28 PM
is syslog listening? cuss Linux - Security 4 12-19-2002 11:47 AM

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

All times are GMT -5. The time now is 02:05 PM.

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