Ubuntu TFTP Configuration

Source: Internet
Author: User

1: sudo apt-Get install tftp tftpd OpenBSD-inetd
In particular, netkit-inetd is used in many articles, but it is found that
This software is not available. We use OpenBSD-inetd, which has good experimental results.

2: Create a folder named tftpboot in the root directory.
CD/
Sudo mkdir tftpboot creates a folder
Sudo chmod 777 tftpboot change folder Permissions

3: Modify sudo gedit/etc/inetd. conf as follows:

TFTP dgram udp wait nobody/usr/sbin/tcpd
/Usr/sbin/in. tftpd/tftpboot

4: Modify sudo gedit/etc/xinetd. d/TFTP to the following format (if there is no TFTP file, create it)

Service tftp
{
Disable = No
Socket_type = dgram
Protocol = UDP
Wait = Yes
User = root
Server =/usr/sbin/in. tftpd
Server_args =-S/tftpboot-C
Source = 11
CPIs = 100 2
}

5: Modify sudo gedit/etc/default/tftpd-HPA as follows:

Run_daemon = "no"

Options = "-S/tftpboot-C-p-u tftpd"

6: sudo/etc/init. d/OpenBSD-inetd reload
Sudo/etc/init. d/xinetd restart
Sudo in. tftpd-L/tftpboot

7. Create a test file aaa in the tftpboot folder.

CD/tftpboot
Sudo touch aaa
Sudo chmod 777 aaa

9: start testing the TFTP service
CD/home
TFTP 192.168.186.100

GET/tftpboot/AAA
If no error code is displayed and the AAA file is displayed in the home directory, TFTP
Service created

Note: 1: If a permission denied error occurs, the operator has insufficient permissions,
Privilege Escalation required
Su Root
After the password is entered, TFTP transmission can be performed normally.

2: If an access violation error occurs, the file permission is not unlocked,
You can unlock all the file operation permissions you want to perform.
Chmod 777 file name

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.