Author Topic: FREE RHCE LESSONS/QUIZZES #7  (Read 464 times)

RudeCat7

  • Member
  • **
  • Posts: 431
  • Kudos: 109
FREE RHCE LESSONS/QUIZZES #7
« on: 25 November 2002, 06:52 »
What file contains the list of port numbers (and associated names) monitored by "inetd"?

a) /etc/hosts

b) /etc/nsswitch.conf/

c) /etc/nsorder

d) /etc/services

e) /etc/inetd.conf


We may have to let Void Main answer this one.
*meow!* I didn't say Linux was easier, I said it was better, Dumbass!

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
FREE RHCE LESSONS/QUIZZES #7
« Reply #1 on: 25 November 2002, 06:55 »
This is an extremely easy one. I'll let someone else answer. It certainly wouldn't be hard for someone to check each of the file names contained within the answers and figure it out on their own though.
Someone please remove this account. Thanks...

choasforages

  • VIP
  • Member
  • ***
  • Posts: 1,729
  • Kudos: 7
    • http://it died
FREE RHCE LESSONS/QUIZZES #7
« Reply #2 on: 25 November 2002, 07:39 »
hermmm, /etc/services?
and im geussing its supposed to be /etc/xinetd.conf or something, iv been playing with a bsd machine so, im probably talking from my ass
x86: a hack on a hack of a hackway
alpha, hewlett packed it A-way
ppc: the fruity way
mips: the graphical way
sparc: the sunny way
4:20.....forget the DMCA for a while!!!

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
FREE RHCE LESSONS/QUIZZES #7
« Reply #3 on: 25 November 2002, 07:51 »
Correct, /etc/services, it's the same on BSD and every other UNIX system I have ever used. Actually it's pretty much standard on all TCP/IP based systems, even Windows (except the services file is in a different directory in Windows, NT* systems have it in C:\WINNT\SYSTEM32\DRIVERS\ETC, of course).

You are also right that newer Linux systems are using xinetd over inetd and it's main configuration file is /etc/xinetd.conf but the configuration for each xinetd service is in it's own separate file under /etc/xinetd.d/. The contents of each of those files used to be a single line in /etc/inetd.conf.

Of course many other TCP/IP programs use the /etc/services file. The "netstat" command for instance uses it to turn port numbers into names. If you didn't have the services file there all you would see are numbers. For instance "http" would show up as "80".

[ November 24, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...