Can't get tftp to work on Debian
I have created a /tftpboot directory and chmod it to 777.
I have put an image 'uImage' on my Debian box under /tftpboot
In directory /etc/xinetd.d/ I have created file tftp:
Service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = /tftpboot
log_type = SYSLOG daemon info
log_on_failure = HOST
log_on _success = HOST
}
I restart tftp server with:
/etc/init.d/xinetd restart
Now I can ping the debian box from my pc and vice versa.
Now when I try to do an ftp:
tftp 192.168.2.211 GET uImage
I keep geting timeouts although uImage is on the debian box and it appears the tftp server is running.
I've also tried tftp on the same linux box as the file is stored
tftp 127.0.0.1 GET uImage.
The file /usr/sbin/in.tftp exists
I've tried adding:
server_args = -s /tftpboot
permissions on /tftboot 777 and uImage is 644 ie it has read access for everyone.
With verbose trace on as root on I get:
getting from 127.0.0.1:uimage to uimage
sent RRQ <file=uimage, mode=netascii>
sent RRQ <file=uimage, mode=netascii>
sent RRQ <file=uimage, mode=netascii>
sent RRQ <file=uimage, mode=netascii>
Transfer timed out
As user I get:
uImage: Permission Denied
There is nothing in /etc/hosts.deny file
the permissions for /tftpboot are 777, and the the file uimage is 644, ie full read access.
I've restarted xinetd.
Help !!
|