Article 50JTX tftp: permission denied when using parent directory in get request

tftp: permission denied when using parent directory in get request

by
marymac39
from LinuxQuestions.org on (#50JTX)
I am having an issue with tftp not being able to get a file when parent directory (../) is used in the get command. If full path is used, there is no issue.

The file I'd like to retrieve from server via tftp: /var/lib/tftpboot/images/client/kernel

From client, after connecting to server (verbose mode on):

tftp> get /var/lib/tftpboot/images/client/kernel
Received 6786406 bytes in 1.8 seconds [30580263 bit/s]

tftp> get /var/lib/tftpboot/bootloader/client/../../images/client/kernel
Error code 2: cannot access /var/lib/tftpboot/bootloader/dci-client/../../images/dci-client/kernel: Permission denied

Obviously the use of ../ in the get command is the issue. Is there a setting or something I'm missing for tftp?

I'm generically describing an issue where a pxe client is requesting boot files from a pxe server and I have no control over how the client requests so I can't force it to use the full path without ../latest?d=yIl2AUoC8zA latest?i=6L_d3Xo_v4Y:h6juohAXCSo:F7zBnMy latest?i=6L_d3Xo_v4Y:h6juohAXCSo:V_sGLiP latest?d=qj6IDK7rITs latest?i=6L_d3Xo_v4Y:h6juohAXCSo:gIN9vFw6L_d3Xo_v4Y
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments