The format of files in the
/etc/xinetd.d/
directory use the same conventions as
/etc/xinetd.conf
. The primary reason the configuration for each service is stored in a
separate file is to make customization easier and less likely to effect other services.
To gain an understanding of how these files are structured, consider the
/etc/xinetd.d/telnet
file:
service telnet { flags = REUSE socket_type = stream wait = no user = root
server = /usr/sbin/in.telnetd log_on_f= USERID disable = yes }
These lines control various aspects of the
telnet
service:
•
service
— Defines the service name, usually one listed in the
/etc/services
file.
•
flags
— Sets any of a number of attributes for the connection.
REUSE
instructs
xinetd
to
reuse the socket for a Telnet connection.
•
socket_type
— Sets the network socket type to
stream
.
•
wait
— Defines whether the service is single-threaded (
yes
) or multi-threaded (
no
).
•
user
— Defines what user ID the process runs under.
•
server
— Defines the binary executable to be launched.
•
log_on_failure
— Defines logging parameters for
log_on_failure
in addition to those
already defined in
xinetd.conf
.
•
disable
— Defines whether the service is active.
4.3. Altering
xinetd
Configuration Files
There are a large assortment of directives available for
xinetd
protected services. This section
highlights some of the more commonly used options.
4.3.1. Logging Options
The following logging options are available for both
/etc/xinetd.conf
and the service-specific
configuration files within the
/etc/xinetd.d/
directory.
Below is a list of some of the more commonly used logging options:
•
ATTEMPT
— Logs the fact that a failed attempt was made (
log_on_failure
).
•
DURATION
— Logs the length of time the service is used by a remote system
(
log_on_success
).
Chapter 17. TCP Wrappers and ...
320
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......