Hi all,
I am trying to copy one file through tftp by using the following command,
uclibc[/]$ tftp -r /root/a.out -g 172.19.60.76
here, 172.19.60.76 is the tftp server.
but i am getting the error "time out"
in server log file(/var/log/messages), i can see the following error message,
Nov 5 17:38:19 localhost xinetd[14059]: START: tftp pid=28430 from=172.19.56.144Nov 5 17:38:19 localhost in.tftpd[28430]: /var/lib/tftpboot: Permission deniedNov 5 17:38:19 localhost xinetd[14059]: Deactivating service tftp due to excessive incoming connections. Restarting in 2 seconds.Nov 5 17:38:19 localhost xinetd[14059]: FAIL: tftp connections per second from=172.19.56.144Nov 5 17:38:21 localhost xinetd[14059]: Activating service tftp
Subscribe to:
Post Comments (Atom)
7 comments:
sujith,
is it tftp is enabled on the machine. In linux the configuration file is /etc/xinetd.d/tftp..Check for the line "disable=" in this file. This should be set to "no".
Normally tftp service listens on the port 69. So grep for this port in netstat command. eg. netstat -lpt |grep 69. Try to telnet to this port from your machine and check whether it is listening request from your machine.
paste your tftp configuration file
/etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
# protocol. The tftp protocol is often used to boot diskless \
# workstations, download configuration files to network-aware printers, \
# and to start the installation process for some operating systems.
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
# user = nobody
server = /usr/sbin/in.tftpd
# server_args = -s /var/lib/tftpboot
server_args = -c -s /tftpboot
per_source = 11
cps = 100 2
flags = IPv4
}
One more thing I wanted to mention. I restarted my linux machine. After that when I restarted xinetd (/etc/init.d/xinetd restart) I got following /var/log/messages.
Nov 11 10:56:06 localhost xinetd[3123]: Exiting...
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/in.comsat is not executable [line=10]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=10]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/in.rexecd is not executable [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/in.fingerd is not executable [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/in.ftpd is not executable [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/in.rlogind is not executable [line=10]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=10]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/ucb/netstat is not executable [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/in.ntalkd is not executable [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/rpc.rstatd is not executable [line=12]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=12]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/rpc.rstatd is not executable [line=11]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=11]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/rpc.rusersd is not executable [line=12]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=12]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/in.rshd is not executable [line=12]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=12]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/rpc.sprayd is not executable [line=12]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=12]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/bin/ps is not executable [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/in.talkd is not executable [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/in.telnetd is not executable [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=9]
Nov 11 10:56:07 localhost xinetd[5511]: Server /usr/sbin/rpc.rwalld is not executable [line=13]
Nov 11 10:56:07 localhost xinetd[5511]: Error parsing attribute server - DISABLING SERVICE [line=13]
Nov 11 10:56:07 localhost xinetd[5511]: xinetd Version 2.3.7 started with libwrap options compiled in.
Nov 11 10:56:07 localhost xinetd[5511]: Started working: 1 available service
R u able to telnet to the port 69 of the tftp server? Also check whether selinux is active?
Ya, that is true. some times selinux puts u in really big trouble.
some people have the habbit of securing the sever, by ensuring that unwanted services are not started. They may make sure of that by removing the executable bit of some services, like rlogin
Hi,
Its working now. I have changed the SElinux settings & just re installed the tftp server rpm. Earlier i have installed the package for FC9.(my OS is FC8).
Thak you... thank you for your kind responses...........
Post a Comment