
다음 명령은 예상대로 작동합니다.
tftp <tftp_server_name> -c put some_file
그러나 다음 명령은 실패합니다.
tftp <tftp_server_name> -c put /absolute/path/to/some_file
또한 오류 메시지는 파일마다 다릅니다. 가끔 읽다
Error code 1: File not found
가끔은 읽는다
tftp: some_file: No such file or directory
tftp -V 보고서:
tftp-hpa 5.0, without readline
in.tftpd -V 보고서:
tftp-hpa 5.2, with remap, with tcpwrappers
tftpd는 --create 및 --secure로 구성됩니다. TFTP_DIRECTORY는 모든 사람이 읽고 쓸 수 있고 "nobody" 사용자가 소유하는 디렉터리로 설정됩니다. 서버는 Debian wheezy에서 실행되고 클라이언트는 Debian squeeze에서 실행됩니다.
답변1
한 가지 해결책은 대상 파일 이름을 명시적으로 지정하는 것입니다. 예를 들어
tftp <tftp_server_name> -c put /absolute/path/to/some_file some_file
또한 서버의 하위 디렉터리로 파일을 보내려면 해당 하위 디렉터리가 서버에 이미 있어야 하며 모든 사용자에게 rwx여야 합니다.
예를 들어 당신이하고 싶은 경우
tftp <tftp_server_name> -c put /absolute/path/to/some_file some_dir/some_file
그런 다음 서버의 TFTP_DIRECTORY에 some_dir 디렉터리가 있어야 합니다. (Some_dir은 모든 사람에 대해 rwx여야 합니다.)