The file contains entries for the services which the inetd daemon program calls when a request arrives over the socket interface.
Each entry for a service consists of a line in the following format:
service type protocol wait userID program arguments |
service
Name of the service, as entered in /etc/inet/services
type
Type of the socket: stream
oder dgram
.
protocol
Name of the protocol, as entered in /etc/inet/protocols.
Instead of tcp
or udp
, you can also enter tcp6
or udp6
, provided the server program involved supports IPv6.
wait
Defines whether the service releases the socket immediately (nowait
) or only after a certain time (wait
).
userID
User ID under which the server program is to run.
program
Path name of the server program or internal
for services that are available internally in inetd.
arguments
Optional parameters for the server program call.
Example
# shell stream tcp nowait SYSROOT /usr/sbin/in.rshd in.rshd login stream tcp nowait SYSROOT /usr/sbin/in.rlogind in.rlogind -n #telnet stream tcp nowait SYSROOT /usr/sbin/in.telnetd in.telnetd # time stream tcp nowait SYSROOT internal #time dgram udp wait SYSROOT internal # # Echo, discard, daytime, and chargen are used primarily for testing. # echo stream tcp nowait SYSROOT internal #echo dgram udp wait SYSROOT internal
Additionally installed server applications can be entered into this file by systems support.