LINUX環境構築/CentOS4.0/tftpd

Last-modified: 2009-04-23 (木) 00:55:27

in.tftpd

  • /sbin/in.tftpdに配置
    tftp-serverパッケージを入れる
  • cat /etc/xinetd.d/tftp
    service tftp
    {
           protocol        = udp
           port            = 69
           socket_type     = dgram
           wait            = no
           user            = root <==ルートでないといけない?
           group           = root
           server          = /usr/sbin/in.tftpd
           server_args     = -c -s /tftpboot  #<== -cで新規ファイル作成put許可。-sでルートディレクトリ
    #      only_from       = 192.168.0.0/24
           disable         = yes
    }
  • mkdir /tftpboot/
  • /etc/init.d/xinetd restart

busybox tftpd

  • busyboxのtftpdは、UDPのソケット処理はしない。
  • inetdで起こされるか、もしくはbusyboxのudpsvdで起動する必要がある。
    例)
    sudo busybox udpsvd -vE 0.0.0.0 69 busybox tftpd -c /tftpboot/