On 9/13/07, <b class="gmail_sendername">Davide Grandis</b> <<a href="mailto:davide.grandis@fastwebnet.it">davide.grandis@fastwebnet.it</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br><br>I'm trying to setup a TFTP server to serve as repository for the<br>config of all my Cisco network devices.<br><br>As per the the tftpd man, I've added the "-c" option into the /etc/<br>xinetd.d
/tftp (as follows) but I still cannot get write access<br>(unless the file is already present).<br><br>[root@chl1 ~]# cd /etc/xinetd.d<br>[root@chl1 xinetd.d]# cat tftp<br># default: off<br># description: The tftp server serves files using the trivial file
<br>transfer \<br>#       protocol.  The tftp protocol is often used to boot diskless \<br>#       workstations, download configuration files to network-aware<br>printers, \<br>#       and to start the installation process for some operating
<br>systems.<br>service tftp<br>{<br>         disable = no<br>         socket_type             = dgram<br>         protocol                = udp<br>         wait                    = no<br>         user                    = root
<br>         server                  = /usr/sbin/in.tftpd<br>         server_args             = -s -c /tftpboot<br>         per_source              = 11<br>         cps                     = 100 2<br>         flags                   = IPv4
<br>}<br><br>And here is it concerning the home path owner & permissions:<br><br>[root@chl1 /]# ls -la<br>...<br>drwxrwxrwx   2 root root  4096 Sep 13 10:18 tftpboot<br>...<br>[root@chl1 /]# ls -la tftpboot/<br>drwxrwxrwx  2 root   root      4096 Sep 13 10:18 .
<br>drwxr-xr-x 25 root   root      4096 Sep 13 17:48 ..<br>-rwxrwxrwx  1 nobody nobody 1811552 Sep 12 10:28 c3500xl-c3h2s-mz.<br>120-5.WC17.bin<br>-rwxrwxrwx  1 nobody nobody    1181 Sep 13 17:51 pippo.config<br><br>(pippo.config
 = fake file)<br><br>This is what I get at the TFTP client side:<br><br>LabTI-Infra-3524XL-01#copy running-config tftp:<br>Address or name of remote host []? <a href="http://10.58.2.204">10.58.2.204</a><br>Destination filename [labti-infra-3524xl-01-confg]?
<br>TFTP: error code 1 received - File not found<br><br>%Error opening tftp://10.58.2.204/labti-infra-3524xl-01-confg<br>(Undefined error)<br><br>LabTI-Infra-3524XL-01#<br>LabTI-Infra-3524XL-01#copy running-config tftp:<br>
Address or name of remote host []? <a href="http://10.58.2.204">10.58.2.204</a><br>Destination filename [labti-infra-3524xl-01-confg]? pippo.config<br>!!<br>2327 bytes copied in 0.831 secs<br><br>So, it means that the TFTP client can only *re-write* an existing
<br>file but not creating new ones, and this is the expected behavior if<br>the "-c" parameter is omitted!<br><br>What am I missing?<br><br>Any suggestion really appreciated!<br><br>TIA,<br>Davide<br><br></blockquote>
</div><br><br>I had this same problem when trying to back up my switch configs.  After some googling, I found a workaround for RH-based systems.  The workaround is disable tftp in xinetd, and run in.tftpd manually.  I never figured out why it would not work with xinetd.
<br>