linux – 如何在CentOS 6.2上创建工作的TFTP服务器

我正在尝试在CentOS 6.2上设置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

相关文章

Linux中的ARP防火墙主要用于防御ARP欺骗攻击,其效果取决于多...
insmod和modprobe加-f参数导致Invalid module format错误 这...
将ArchLinux安装到U盘 几个月前入门Arch的时候上网搜了不少安...
1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...