PUT unable to upload to server - Error Code 1

Bug #664424 reported by AndreK
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tftp-hpa (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: tftp-hpa

installing tftpd-hpa works.
I am able to GET files (from /var/lib/tftpboot) using tftp client on another computer (both are Ubuntu)
PUT does not work, it returns error:
"Error code 1: File not found"

This is not that the client side can't find file, because is I try to put a file that does not exists, I get: "No such file or directory"

So - plain-installed tftpd-hpa is unable to receive files for some reason - maybe /var/lib/tftpboot rights ?

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: tftpd-hpa 5.0-14ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic-pae 2.6.35.4
Uname: Linux 2.6.35-22-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Thu Oct 21 12:59:27 2010
ExecutablePath: /usr/sbin/in.tftpd
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron: PATH=(custom, no user)
SourcePackage: tftp-hpa

Revision history for this message
AndreK (andre-k) wrote :
Revision history for this message
James Page (james-page) wrote :

The default behaviour for tftpd is to not create new files, i.e. you can upload to an existing file location (as long as it has the correct permissions) but you can't create new files on the tftpd server.

You can change this behaviour by adding the --create parameter to TFTP_OPTIONS in /etc/default/tftpd-hpa and amending the directory permissions on /var/lib/tftpboot.

However you should do this with EXTREME CAUTION; this effectively allows any remote client to upload data with no authentication to your server which could create potential Denial of Service problems due to full file systems etc...

I checked this in Lucid as well and this behaviour has not changed for Maverick.

Changed in tftp-hpa (Ubuntu):
status: New → Invalid
Revision history for this message
AndreK (andre-k) wrote :

Ok, it's not a bug.
Thanks for the detailed description on how-to solve it.
I plan to use the TFTP on LAN only, so there are no big risk of DOS.

Can I somehow contribute/make this solution appear on a webpage, and have the description in synaptic point there ?
We were 3 people at work testing on our computers, no-one got it working, and we ended up wondering why something "this simple" were so difficult.

I hope the tftpd can somehow provide this information more clearly.
Imagine those that install it, just to back up a cisco switch or Checkpoint firewall - then we need the server to receive files.

Revision history for this message
Arno Teigseth (arnotixe) wrote :

At least change the error message to say "File not found on server" or "File does not already exist on server"...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.