Results 1 to 2 of 2
I'm running CentOS5 and having trouble with the tftp service. The short version of the story is that it won't work when running from xinetd or in standalone mode from ...
- 02-03-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 1
tftpd works from console but not from an init script
I'm running CentOS5 and having trouble with the tftp service. The short version of the story is that it won't work when running from xinetd or in standalone mode from rc.local. But if I copy and paste the command from rc.local into a console, it freaking works every time.
I tried running it from xinetd with the following config:
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s /tftp
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
This didn't work for some reason. Every tftp client request was met with "in.tftpd[5166]: sending NAK (0, Permission denied) to 10.17.51.10". The files I tried to download with the client were world readable, so it was not a filesystem permission problem. For the hell of it I tried setting the user to root, but then every connection would time out.
So I disabled it in xinetd and tried running in standalone mode from the console like so:
/usr/sbin/in.tftpd -vvvv -l -u nobody -s /tftp
This worked perfectly. So I put that into rc.local and guess what? Same problem as before. Every tftp request is denied and the log file says "sending NAK (0, Permission denied) to x.x.x.x". I kill the process started by init from rc.local and start it again from the console with the exact same command and everything works.
Any ideas what the hell is going on?
- 02-05-2009 #2
Why are you making things so hard?
TFTP Howto


Reply With Quote