Technical data

SET SERVICE
Requires write access to the directory with the services database.
Parameters
service
Required for SET SERVICE; optional for SET NOSERVICE.
Service you want to modify or enter into the services database.
Qualifiers
/ACCEPT {=[NO]HOSTS=(hosts) | =[NO]NETWORKS=(networks)}
Optional. Default: Offers the service to all hosts on all networks.
/ACCEPT=HOST=(host)
Grants host or hosts access to the service.
Denies access to all other hosts.
/ACCEPT=NOHOST=host removes access to the service for a host that
previously gained access with /ACCEPT=HOST.
The following options are available:
Option Meaning
HOSTS=hosts Makes the service available to the specified hosts.
Denies all other hosts access to the service.
Maximum is 32.
Example:
/ACCEPT=HOSTS=(host1_name,host2_name,host3_address)
NOHOSTS=hosts Removes the specified hosts from the accept list so they cannot gain access to the
service. You can specify a wildcard character (*) in place of the hosts list to remove all
hosts from the accept list.
Maximum is 32.
Example:
/ACCEPT=NOHOSTS=(host1_name,host2_name,host3_address)
NETWORKS=networks Makes the service available to the specified networks. Denies access to the service to all
other networks.
Maximum is 16.
For each network, you can optionally specify the network mask. The default network
mask equals network’s class number. For example, for the network 11.200.0.0., the
default mask is 255.0.0.0.
Example:
/ACCEPT=NETWORKS=(net1_name,net2_address,net3:net3mask)
NONETWORKS[=networks] Removes the specified networks from the accept list so they cannot gain access to the
service. You can specify a wildcard character (*) in place of the networks list to remove
all networks from the accept list.
Maximum is 16.
For each network, you can optionally specify the network mask. The default net mask
equals network’s class number. For example, for network 11.200.0.0., the default mask
is 255.0.0.0.
/ACCEPT=NONETWORKS=(net1_name,net2_address,net3:net3mask)
2–144 Command Descriptions