inetd question

Erik Sherk sherk at nmc1.cit.cornell.edu
Thu Mar 15 02:57:47 AEST 1990


I have been experiencing some weird interaction between inetd and tftpd.
First some background: I am setting up a boot server for some Proteon
gateways. I don't want to use Sun's in.tftpd because it doesn't chroot()
and it is an open invitation to password breakers. So, I have a 4.2 tftpd
that I have hacked over to chdir() and chroot(). I have installed it in
inetd.conf and everything works, but in installing it I found this
weirdness.

I have the following lines in /etc/inetd.conf:

tftp    dgram   udp     wait    root    /usr/local/bin/tftpd 	tftpd -r /usr/ftp
#tftp    dgram   udp     wait    root    /usr/etc/in.tftpd	in.tftpd /usr/ftp

Now I edit /etc/inetd.conf so that it looks like this:

#tftp    dgram   udp     wait    root    /usr/local/bin/tftpd 	tftpd -r /usr/ftp
tftp    dgram   udp     wait    root    /usr/etc/in.tftpd	in.tftpd /usr/ftp

and issue a "kill -HUP xxx" and everything works fine. (As well a Sun's
tftpd works :-() Now I reedit /etc/inetd.conf back to the original form
and issue another "kill -HUP xxx" which should enable my tftpd, but inetd
isn't listening on the port any more. If I restart inetd, everything
works.

	Any ideas?

Erik Sherk					sherk at nmc1.cit.cornell.edu
Network Specialist				(607) 255-1679
Cornell Information Technologies
Cornell University



More information about the Comp.sys.sun mailing list