Greetings
I am self studying for RHCE because i don`t have enough money to get a full course hence i don`t have an instructor to help me on this one.
I trying to setup an tftp server but i cant seem to be able to get files from it.
i have installed the server:
Code:
[root@vmrehel ~]# rpm -q tftp-server
tftp-server-0.49-7.el6.x86_64
and xinetd:
Code:
[root@vmrehel ~]# rpm -q xinetd
xinetd-2.3.14-39.el6_4.x86_64
Both tftpd and xinetd are "chkconfiged" ON and running. The tftp file in the /etc/xinetd.d/ is as follows:
Code:
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = --logfile /var/log/tftpd.log -vvvv -s /var/lib/tftpboot
per_source = 11
cps = 100 2
flags
i have copied the /etc/services files as a test file under the /var/lib/tftpboot and made sure that read permissions are on for everyone.
Code:
[root@vmrehel ~]# ll /var/lib/tftpboot/
total 628
-rw-r--r-- 1 root root 641020 Dec 11 14:32 services
I then connect to the tftp server and confirmed that connection is healthy:
Code:
[root@vmrehel ~]# tftp 127.0.0.1
tftp> status
Connected to 127.0.0.1.
Mode: netascii Verbose: off Tracing: off Literal: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp>
however when i try to get the file it fails:
Code:
tftp> get services /tmp/services
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
sent RRQ <file=services, mode=netascii>
Transfer timed out.
tftp>
and i get the following error in /var/log/messages:
Code:
Dec 11 14:48:06 vmrehel xinetd[2822]: START: tftp pid=2981 from=127.0.0.1
Dec 11 14:48:06 vmrehel in.tftpd[2981]: Unknown option: '#000'
Dec 11 14:48:06 vmrehel in.tftpd[2981]: too many -s directories
Dec 11 14:48:06 vmrehel xinetd[2822]: EXIT: tftp status=64 pid=2981 duration=0(sec)
Any ideas?