+ -
当前位置:首页 → 问答吧 → FreeBSD下面不能传送文件给tftp server

FreeBSD下面不能传送文件给tftp server

时间:2010-09-27

来源:互联网

bsd01# uname -a
FreeBSD bsd01 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010     [email protected]:/usr/obj/usr/src/sys/GENERIC  i386

bsd01# tftp 0
tftp> put aaa
tftp: aaa: No such file or directory
tftp> put a.c
Error code 0: No such file or directory
tftp> q

inetd.conf
tftp    dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s /home/tftpboot
tftp    dgram   udp6    wait    root    /usr/libexec/tftpd      tftpd -l -s /home/tftpboot

注: aaa文件确实不存在;a.c是权限足够大的实际存在的文件


下载可以,上传不可以,这可能是哪里出了问题呢?

作者: nimysun   发布时间: 2010-09-27



QUOTE:
bsd01# uname -a
FreeBSD bsd01 7.3-RELEASE FreeBSD 7.3-RELEASE #0: Sun Mar 21 06:15:01 UTC 2010      ...
nimysun 发表于 2010-09-27 20:22




    找到root cause了,是需要加一个-w的参数在Inetd.conf中



QUOTE:
inetd.conf
tftp    dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -w -s /home/tftpboot
tftp    dgram   udp6    wait    root    /usr/libexec/tftpd      tftpd -l -w -s /home/tftpboot

作者: nimysun   发布时间: 2010-09-28