LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   [ask]TFTP problem (https://www.linuxquestions.org/questions/linux-networking-3/%5Bask%5Dtftp-problem-930511/)

dudastt 02-21-2012 09:52 AM

[ask]TFTP problem
 
i have a problem backing up my router configuration to linux via tftp

here are the script in /etc/xinetd.d/tftp

Quote:

service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = /data/tftp_root
disable = no
}
i saved and exited the file and then i ran the command
Quote:

chmod -R 777 /data/tftp_root
chown -R nobody /data/tftp_root
and then i restarted xinet.d

after that i ping the server from my router and it replied back
and then i copied the running-config to tftp and this error message appeared
Quote:

error opening tftp://172.16.12.2/routerconf (permission denied)
did i miss something on the tftp server setting?

regards
--fathul--

michaelk 02-21-2012 01:31 PM

By default, tftpd will only allow upload of files that already exist. Use the -c option.

http://linux.die.net/man/8/tftpd

jefro 02-21-2012 03:01 PM

Try locally a small file to the tftp server. Put a file in there and see if the error is the same. May be also a write issue to the server.


All times are GMT -5. The time now is 04:49 PM.