|
» |
|
|
|
The services file associates an official service name and
alias with the port number and protocol that a service uses. You
will edit the services file for each new service that you want to
add to your system. The remaining chapters in this book, which describe
the configuration of individual services, will assume that you know
the following information. And, of course, you can refer back to
this section as needed. Creating and Linking the Services File | |
You may already have a services file installed on your system.
If you know that you have such a file, and it is accessible by the
POSIX file name /etc/services
you may skip these steps. If you do not have a services file, follow these steps to
create the file and link to it. If you have such a file, but are
unsure whether or not it is linked, perform step 2 only. Create your own services file by using the COPY
command to rename the sample file. Enter: :COPY SERVSAMP.NET.SYS, SERVICES.NET.SYS Create a symbolic link from a file named /etc/services
in the POSIX name space to SERVICES.NET.SYS.
Enter: :NEWLINK /etc/services, SERVICES.NET.SYS
Editing the Services File | |
Use an MPE text editor to edit the file. When you are editing the services file, use the following
information to enter the information correctly. If you find the line that describes
the service you are configuring, but it has been "commented
out" (that is, preceded by a pound sign, #),
the service has not yet been enabled. To enable it, simply delete
the pound sign and any spaces that precede
the service name. If you need to type the line into the file: use only lower case characters enter the service name in the first column without
any leading spaces separate the individual fields on the line with
any number of blanks or tab characters to improve readability
|