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 ../


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 ../