我正在尝试在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服务器正常工作?