Avatar of LindaC
Flag 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.
Unix OS

Avatar of undefined
Last Comment

8/22/2022 - Mon
slightwv (䄆 Netminder)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
slightwv (䄆 Netminder)

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


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.
slightwv (䄆 Netminder)

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?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck

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

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

Thank you.