|The 4.7.17 distribution states, in README-3.html, "It is recommended that
|you set a path explicitly to tftpd instead of relying on any defaults. For
|example:
|
|tftp dgram udp wait root /usr/sbin/tcpd in.tftpd /tftpdir
|
|Would somebody please explain what this means?
That's a typical line to be put in /etc/inetd.conf. The meanings of the
various fields are explained in the man page for inetd, but the ones of
interests are the last three. They say: run tcpd (tcpwrappers), and when
a connection comes in, invoke /usr/sbin/in.tftpd (implied directory),
with an argument of /tftpdir.
Now it is possible to invoke in.tftpd with no arguments and this
typically means, accept the compiled-in default top directory of
/tftpboot. I do not like this because:
1. I prefer to keep my boot images separate from the exported root
trees; they are different kettles of fish.
2. I do not like files in my exported root trees to be available to
tftp, e.g. someone might do:
tftp /tftpboot/xterminal/etc/passwd
and get hold of passwords to crack.
Hence my practice is to explicitly tell in.tftpd which is to be the top
directory for boot images. Things may vary a bit depending on which
tftpd you are using (there are several around).
|