tftpd-hpa on Ubuntu 6.10 - Error code 1: File not found
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
tftpd-hpa on Ubuntu 6.10 - Error code 1: File not found
Hi,
I use a Linux machine to store Cisco IOS images and configurations. The TFTP service was recently migrated to this box as the old one (which was running Ubuntu 6.06) died.
I can get files OK but for some reason I can't put any files using TFTP. I have tried from LAN PCs as well as localhost.
jim@lx-p4:~$ ps aux | grep tftp
root 22553 0.0 0.0 2100 308 ? Ss 19:08 0:00 /usr/sbin/in.tftpd -l -s /tftpboot
Here are the configuation files:
jim@lx-p4:~$ cat /etc/default/tftpd-hpa
#Defaults for tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /tftpboot"
jim@lx-p4:~$ cat /etc/xinetd.d/tftp
service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -l -s /tftpboot
disable = no
This is what happens:
jim@lx-p4:~$ tftp -v localhost
Connected to localhost.localdomain (127.0.0.1), port 69
tftp> get test2.txt
getting from localhost.localdomain:test2.txt to test2.txt [netascii]
tftp>
tftp>quit
jim@lx-p4:~$ ls *.txt
test2.txt
jim@lx-p4:~$ sudo rm /tftpboot/test2.txt
jim@lx-p4:~$ tftp -v localhost
Connected to localhost.localdomain (127.0.0.1), port 69
tftp> put test2.txt
putting test2.txt to localhost.localdomain:test2.txt [netascii]
Error code 1: File not found
This is a different error to the one I get if I try to send a file that doesn't exist:
tftp> put fakefile
tftp: fakefile: No such file or directory
Some Googling revealed the suggestion that I should try to specify the absolute path to the file, but it didn't work and you shouldn't have to do that, I believe.
Any suggestions would be gratefully received - thanks!
FYI - I discovered that in order to PUT a file, I had to change the startup flag from -l to -c (as shown earlier), make sure the directory was read/write, and I had to specify the destination as a fully qualified path:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.