Difference between revisions of "Tftp"

From Klaus' wiki
Jump to: navigation, search
Line 5: Line 5:
 
$ chmod 777 /tftpboot
 
$ chmod 777 /tftpboot
 
$ vi /etc/xinetd.d/tftp ## Change disable = yes to disable = no
 
$ vi /etc/xinetd.d/tftp ## Change disable = yes to disable = no
$ restorecon -r /tftpboot
+
$ /sbin/restorecon -r /tftpboot
 
$ system-config-securitylevel-tui ## add tftp:udp in the customize menu for other ports
 
$ system-config-securitylevel-tui ## add tftp:udp in the customize menu for other ports
 
$ service network restart
 
$ service network restart

Revision as of 10:29, 4 November 2010

To enable tftp on your Centos server perform the following:

$ yum install tftp*
$ chmod 777 /tftpboot
$ vi /etc/xinetd.d/tftp ## Change disable = yes to disable = no
$ /sbin/restorecon -r /tftpboot
$ system-config-securitylevel-tui ## add tftp:udp in the customize menu for other ports
$ service network restart
$ service xinetd restart
$ echo "test">/tftpboot/test
$ tftp localhost ## command: get test

check that the file test is received locally.

On bren try to get the test file as well. If you receive it everything is working correct.