Three aspects of building a tftp server

Source: Internet
Author: User

The problem of tftp server is also involved in the previous article. Here we will mainly explain how to build a tftp server. We have summarized three aspects for your reference, so I hope that some of the conclusions in this article will be helpful to you.

Build a tftp server 1. First find the tftp server package from the fedora disc, copy it, and install it.

Build a tftp server 2. Modify the/etc/xinetd. d/tftp file as follows:

 
 
  1. service tftp  
  2.  
  3. {  
  4.         socket_type             = dgram 
  5.         protocol                = udp 
  6.         wait                    = yes 
  7.         user                    = root 
  8.         server                  = /usr/sbin/in.tftpd  
  9.         server_args             = -s /tftpboot  
  10.         disable                 = no 
  11.         per_source              = 11 
  12.         cps                     = 100 2  
  13.         flags                   = IPv4 

There are also the following:

 
 
  1. service tftp  
  2.  
  3. {     socket_type            =dgram 
  4.        protocol              =udp 
  5.        wait                  =yes 
  6.        user                  =root 
  7.        server                =/usr/sbin/in.tftpd  
  8.        server_args           =-s /home/lqm/tftpboot -c  
  9.        disable               =no 
  10.        per_source            =11 
  11.        cps                   =100 2  
  12.        flags                 =IPv4 

Note: The Modification Item server_args =-s <path>-c, where <path> can be changed to the root directory of your tftp-server, and the parameter-s specifies the chroot, -c specifies that files can be created.

Build a tftp Server 3. Start tftp

 
 
  1. service xinetd restart 

In this case, the startup should be successful, as shown in the following test:

 
 
  1. #tftp     your-ip-address  
  2. tftp>get <download file> 
  3. tftp>put <upload file> 
  4. tftp>q  

During this process, pay attention to whether the firewall is disabled.

Question 1:

After tftp is installed, a file is generated under tftpboot, and then tftp 192. xx

 
 
  1. tftp> get test  
  2.  
  3. Error code 0: Permission denied 

This problem occurs when the permission of the generated file is incorrect. You can modify the permission of the test file, chmod 777 test, and then test again and pass the test.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.