Use the -l option of the inetadm command to list all the properties of the specified service. Inspect the current values of the properties.
$ inetadm -l FMRI
Use the -m option of the inetadm command to change the value of a specified property. Specific information about the properties for a service should be covered in the man page associated with the service.
$ inetadm -m FMRI property-name=value
To delete a property value, specify an empty value.
$ inetadm -m svc property=""
List the properties again to make sure that the appropriate change has occurred.
$ inetadm -l FMRI
Confirm that the property change has the expected effect.
This example shows how to limit the number of finger processes that are allowed to run concurrently.
Security best practice recommends limiting the number of processes that are allowed to run concurrently for each system service that is controlled by inetd. In addition, if a service that is controlled by inetd is not needed, disable that service as described in Stopping a Service.
The property to configure to limit the number of processes that are allowed to run concurrently is the max_copies property. The inetadm -p command lists the properties common to all services managed by inetd and their default values. The following example shows only partial output:
$ inetadm -p NAME=VALUE ... max_copies=-1 ...
The inetadm -l command lists all the properties of the specified service so that you can inspect the current value of the max_copies property for that service.
$ inetadm -l finger | grep copies default max_copies=-1
Use the -m option of the inetadm command to change the value of the property:
$ inetadm -m finger max_copies=5
Verify that the property value is changed.
$ inetadm -l finger | grep copies max_copies=5
Notice that the scope of “default” is no longer displayed for this property.