Saturday, November 26, 2016

Understanding how tftpd put works - Error code 2: Access violation

Trying to install a tftp server onto Debian? Yet, not succeeding in uploading files onto the tftp server? Getting the following error?  Error code 2: Access violation

You are likely running into the following "feature" (issue) that is being described in the tftpd documentation.

The use of tftp(1) does not require an account or password on the remote system.  Due to the lack of authentication information, tftpd will allow only publicly readable files to be accessed.  Files may be written  only if they already exist and are publicly writable.  Note that this extends the concept of “public” to include all users on all hosts that can be reached through the network;

To fix this, before putting any new file in your /tftpboot directory it has to:
  1. exist 
  2. be world writable and optionally be owned by nobody
Note: Certain tftp servers for Windows do allow the direct put of a file, even if it does not exist. I did not found any that do that under Linux.

Tip from: http://myhomelab.blogspot.be/2013/09/installing-tftp-server-in-linux.html

No comments:

Post a Comment