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:
- service tftp
-
- {
- socket_type = dgram
- protocol = udp
- wait = yes
- user = root
- server = /usr/sbin/in.tftpd
- server_args = -s /tftpboot
- disable = no
- per_source = 11
- cps = 100 2
- flags = IPv4
- }
There are also the following:
- service tftp
-
- { socket_type =dgram
- protocol =udp
- wait =yes
- user =root
- server =/usr/sbin/in.tftpd
- server_args =-s /home/lqm/tftpboot -c
- disable =no
- per_source =11
- cps =100 2
- 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
- service xinetd restart
In this case, the startup should be successful, as shown in the following test:
- #tftp your-ip-address
- tftp>get <download file>
- tftp>put <upload file>
- 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
- tftp> get test
-
- 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.