This is an old revision of the document!
[gate:~] # grep tftp /etc/inetd.conf tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -s /tftpboot [gate:~] # mkdir /tftpboot [gate:~] # cat /tftpboot/test.txt Hello World [gate:~] # /etc/rc.d/inetd rcvar [gate:~] # cat /etc/rc.conf ... inetd_enable=YES ... [gate:~] # /etc/rc.d/inetd start Starting inetd.
Разрешаем создание файлов (разобраться с правами на каталог)
[gate:~] # grep tftp /etc/inetd.conf tftp dgram udp wait root /usr/libexec/tftpd tftpd -l -w -s /tftpboot
# pkg_add -r utftpd # cd /usr/local/etc/ # cat utftpd.conf client default { uid=nobody; dir="/tftpboot"; read="/"; write="/"; create="/"; } # chown -R nobody /tftpboot/ # rehash # utftpd_make utftpd.conf.cdb utftpd.conf.tmp utftpd.conf # grep tftp /etc/inetd.conf tftp dgram udp wait root /usr/local/sbin/utftpd utftpd -c /usr/local/etc/utftpd.conf.cdb # /etc/rc.d/inetd restart