4 configuring tftp with inetd – SBE HighWire HW400c/2 User Manual

Page 83

Advertising
background image

HighWire HW400c/2 User Reference Guide Rev 1.0

text editor to remove the hash mark on each line that contains the string tftp. Active

,

he xinetd is the

e two mechanisms, and is generally viewed as being more secure

an the older inetd.

(process status) command, as in the following

ample:

ps alxww | grep inet

.. .

stem is using the xinetd server to manage Internet

the instructions in Section 5.4.5. If the output

om this command on your system shows that it is running the inetd, proceed to

5.4.4 Configuring tftp with inetd

he servers that can be managed by the

are listed in the file


#tftp dgram udp wait root /usr/sbin/tcpd in.tftpd

Uncomment (re

mark) from the beginning of this line, save the

modifie
Add the option and value -s /tftpboot to the end of this line. This specifies the
dire

r

in which

you wil
HighW
Next, force the inetd to reread its configuration file. Because all Linux
distribu

the easiest way to do this is to send the HUP signal to the running inetd process.

o do th s, you must first locate the process ID of the inetd process that is

TFTP entries in /etc/services should look like the following:

tftp 69/tcp
tftp 69/udp


Depending on the Linux distribution and version you are using on the host, Linux
systems typically use one of two mechanisms to activate and manage network servers
such as TFTP servers. These are the Extended Internet Services Daemon, xinetd

t

and the older Internet Services Dameon, inetd. Bo h the xinetd and inetd
manage a variety of network services by monitoring various network ports and

tarting the appropriate daemon in response to a valid request. T

s
more modern of thes
th
To determine which of these mechanisms your system uses to manage Internet
services, you can use the system’s ps
ex

#

5 0 2486 1 16 0 2844 872 - Ss ? 0:00 xinetd
4 0 13205 13183 17 0 5472 668 pipe_w S+ pts/6 0:00 grep inet

This example shows that the sy
services. In this case, you should follow
fr
the next section,

Section 5.4.4.


T

inetd

/etc/inetd.conf

. Each line in this file contains the entry for a specific server.

To enable the TFTP server, edit the file /etc/inetd.conf as the root user on
your system, and locate the line that looks like the following:

move the hash

d file, and exit the editor.

cto y in which the TFTP server will look for files. This is the directory

l put the compiled Gentoo Linux kernel image (

uImage

) that the SBE

ire HW400c/2 will download and boot.

tions use different mechanisms for starting and stoppping system processes,

T

i

currently running on your system using the ps (process status) command, as in the
following example:

October 10, 2006

Copyright 2006, SBE, Inc.

Page

71

Advertising