Thursday, February 25, 2010

Setting up a tftp server under Ubuntu 9.1

Perform the following steps to setup a tftpd server under ubuntu 9.1
  1. Run: sudo apt-get install atftpd
  2. Sudo edit /etc/default/atftpd to read
    USE_INETD=false
    OPTIONS="--daemon --port 69 --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /tftpboot
  3. Create the /tftpboot folder by executing sudo mkdir /tftpboot
  4. Change so that all users can edit/modify files in this folder by executing: sudo chmod -R +777 /tftpboot
  5. Change the ownership to nobody by executing: sudo chown -R nobody /tftpboot
  6. Secure who can access this tftp server by editing the hosts.allow file in /etc and adding:
    in.tftpd :
That it....

No comments: