我正在尝试在CentOS 6.2上设置TFTP服务器.
/etc/xinet.d/tftp配置文件如下:
/etc/xinet.d/tftp配置文件如下:
service tftp { disable = no socket_type = dgram protocol = udp wait = yes user = root server = /usr/sbin/in.tftpd server_args = -s /tftpboot -vvv per_source = 11 cps = 100 2 flags = IPv4 }
selinux和防火墙被禁用.
/etc/hosts.allow和/etc/hosts.deny文件为空.
当我试图从TFTP服务器获取文件时,文件传输总是失败,我在/ var / log / messages中看到以下错误
Jul 11 03:16:53 localhost xinetd[4155]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in. Jul 11 03:16:53 localhost xinetd[4155]: Started working: 1 available service Jul 11 03:17:00 localhost xinetd[4155]: START: tftp pid=4157 from=192.168.10.3 Jul 11 03:17:00 localhost in.tftpd[4158]: RRQ from 192.168.10.3 filename 1 Jul 11 03:17:00 localhost in.tftpd[4158]: sending NAK (0,Permission denied) to 192.168.10.3 Jul 11 03:17:01 localhost in.tftpd[4159]: RRQ from 192.168.10.3 filename 1 Jul 11 03:17:01 localhost in.tftpd[4159]: sending NAK (0,Permission denied) to 192.168.10.3 Jul 11 03:17:03 localhost in.tftpd[4160]: RRQ from 192.168.10.3 filename 1
tftpboot目录权限是(ls -l命令的输出):
drw-rw-rw-. 3 root root 4096 Jul 11 03:32 tftpboot
我还看到tftpboot目录显示(由ls -l)绿色背景(与其他文件/目录不同)(为什么?我知道绿色背景仅用于粘贴位).
我做错了什么?如何使TFTP服务器正常工作?
解决方法
您的/etc/xinet.d/tftp配置文件是否正确.
/ tftpboot的权限应为755或drwxr-xr-x.
确保chkconfig –list显示在xinetd下启用了tftp.
xinetd based services: chargen-dgram: off chargen-stream: off daytime-dgram: off . . rsync: on tcpmux-server: off tftp: on
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。