Discussion Locked

TFTP server

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want my linux svr (RH7.2) to be a TFTP server .
What is the RPM files should I install ?
Why there is no HOWTO about TFTP ?

5 replies

by cpfeiffe

You can get information from the man pages - man tftp or man tftpd. To set this up you add this line to your /etc/inetd.conf file (note - it may already be there, or may just be commented out and all you need to do is uncomment it)

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

/DIR can be anything you want, but it must be a directory that already exists. This is the directory other users/machines will have access to via tftp.

You should also make sure this line exists and is not commented out in /etc/services

tftp 69/udp

Once you are done you need to restart your network daemon (inted). Do a ps -auxw |grep inetd. From this you should get the process ID for inetd. Make sure you are looking at the process ID forinetd and not the parent process ID (the parent will probably be a 0 or 1. You don't want 0 or 1 in this next step). Then do a kill -1 PID where PID is the inetd process ID.

That is it. You're done. So to summarize

1) edit /etc/inetd.conf, if necessary
2) edit /etc/services, if necessary
3) make the directory that the tftp files will be stored in
4) restart inetd

This discussion is closed to new replies.