Link to home
Start Free TrialLog in
Avatar of LindaC
LindaCFlag for Puerto Rico

asked on

question about /etc/services in Unix servers

Hi experts.

I know that the /etc/services is to document the ports already in use.
I need to know how I can document in the /etc/services a range of ports.
ASKER CERTIFIED SOLUTION
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

Why the B grade?  What additional information did you need to give this an A?
Avatar of LindaC

ASKER

Hi.

What additional information did you need to give this an A?

I was expecting something like this:

"Run this script as root so that you will have in a text file, the ports that are being used"
After you add the proper comments to this text file  adding this to each line (example)
    # Comment-This port is for Oracle Apex
then you run this  other script to add the content of this text file to the /etc/services.
This must be run by root.
You asked if it was possible to add a range of ports to the services file.  I answered that with no, you need to add them individually.

If you were looking for a script to take some range in some format and create the individual entries in your services file, why didn't you ask for a script?
Avatar of LindaC

ASKER

You are correct. I should have asked for the script.

I have requested the attention so that it can be changed.
Avatar of LindaC

ASKER

Thank you.