I KNOW I'm missing something simple here. I'm trying to install/run a TFTP server on my centos 4.8 server. I've done the following:
1) Authenticated to the shell as root.
2) Installed tftp-server: yum install tftp-server (xinetd is already installed btw)
3) Edit /etc/xinetd.d/tftp and set disable = no
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
4) Restart xinetd: service xinetd restart
5) Set directory permissions: chmod 777 /tftpboot
6) Make sure the service starts on reboot: chkconfig tftp on
7) Make sure xinetd starts on reboot: chkconfig xinetd on
The tftp-server doesn't seem to start though… not sure why. I don't get any errors but I don't see it listening on port 69 in local netstat results and I can't connect to from tftp client.
What am I missing here?
UPDATE
Thanks for all your help guys. I think I'm starting to see the root cause here — xinetd doesn't appear to be running or started.
[root@server ~]# service xinetd restart
[root@server ~]#
I've removed tftp-server and then removed xinetd… reinstalled them both with yum (xinetd first) but I'm still getting the same error. Is there a log I can examine for xinet?
Best Answer
In server args you have -s /tftpboot, but in your post you said the dir you're using is /tftpserver. The -s and path means the directory that you are using as the TFTP root directory. Change this to the path or the directory you want to use.
If /tftpboot doesn't exist you'll see an error in /var/log/messages and the daemon won't actually start.