2016年3月8日 星期二

ubuntu 14.04 装 tftp server

1.安裝套件

sudo apt-get install xinetd tftpd tftp


2.sudo vi /etc/xinetd.d/tftp 

service tftp
{
    protocol        = udp
    port            = 69
    socket_type     = dgram
    wait            = yes
    user            = nobody
    server          = /usr/sbin/in.tftpd
    server_args     = ~/tftp
    disable         = no
}

3.建立資料夾

sudo mkdir ~/tftp
sudo chmod -R 777 ~/tftp
sudo chown -R nobody ~/tftp

4.sudo service xinetd restart

5.測試tufts get file都會Error Code 2: Access violation

將/etc/xinetd.d/tftp 改成如下即可 ==

service tftp
{
    protocol        = udp
    port            = 69
    socket_type     = dgram
    wait            = yes
    user            = nobody
    server          = /usr/sbin/in.tftpd
    server_args     = /home/jim.hsu/tftp
    disable         = no
}

沒有留言:

張貼留言