-s /tftpboot path in xinetd.d/tftp file
Alexander Apprich
a.apprich at science-computing.de
Thu Mar 24 06:26:06 UTC 2005
Mark Sargent wrote:
> Paul Howarth wrote:
>
>> Mark Sargent wrote:
>>
>>> Edwin Dicker wrote:
>>>
[snip]
> Hi All,
>
> hmmm, not outa the woods yet. Still getting the undefined error.
>
> Switch#copy run tftp
> Source filename [running-config]? running-config
> Destination IP address or hostname []? 192.168.168.12
> Destination filename [running-config]? /tftpboot/running-config
> Building configuration...
> .....
> %Error opening tftp://192.168.168.12//tftpboot/running-config (Undefined
> error)
>
> Ok, lets run through my set up, again,
>
> dir permissions for tftpboot,
>
> [root at localhost tftpboot]# ls -alh
> total 8.0K
> drwxr-xr-x 2 root root 4.0K Mar 24 14:10 .
> drwxrwxrwx 24 nobody nobody 4.0K Mar 24 12:55 ..
>
> above tftpboot is owned by nobody:nobody as per this site,
>
> http://www.linux.com/howtos/Clone-HOWTO/setting-up.shtml
> is it right..? as wello as it's suggestions below for xinetd.d/tftp
>
> xinetd.d/tftp settings
>
> [root at localhost tftpboot]# cat /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
> {
> socket_type = dgram
> protocol = udp
> wait = yes
> user = root
> server = /usr/sbin/in.tftpd
> server_args = -c -s /tftpboot
> disable = no
> per_source = 11
> cps = 100 2
> flags = IPv4
> }
> Correct..?
>
> This site below is a little different,
>
> http://www.linuxhomenetworking.com/linux-hn/xinetd.htm
> as it suggests creating the destination file prior to the transfer. Ok,
> some questions, do I create the dest filename b4hand, and if so, what
> ownership/permissions is required for it.? I'm lost. Anyone..? Cheers.
>
> Mark Sargent.
>
My directory permissions
root at elmstreet / # ll -d /var/tftpboot/
drwxrwxrwx 3 root root 4096 Mar 24 07:17 /var/tftpboot//
Here's my /etc/xinetd.d/tftp
root at elmstreet / # cat /etc/xinetd.d/tftp
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -c -s /var/tftpboot
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
Make sure no tftpd process is running... (kill it if u find 1)
root at elmstreet / # ps auxwww | grep ftp
nobody 4706 0.0 0.0 5004 572 ? Ss Mar07 0:01 proftpd:
(accepting connections)
root 525 0.0 0.0 3928 556 pts/1 R+ 07:17 0:00 grep ftp
Restart xinetd
root at elmstreet / # service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
Here I copy the startup-config from a cisco 3660 router
gw-lan-1#copy startup-config tftp://10.0.0.129/startup
Address or name of remote host [10.0.0.129]?
Destination filename [startup]?
!!!!!!!!!!!!
53297 bytes copied in 0.208 secs (256236 bytes/sec)
And here we go...
root at elmstreet / # ll /var/tftpboot/startup
-rw-rw-rw- 1 nobody nobody 53297 Mar 24 07:17 /var/tftpboot/startup
Alex
More information about the fedora-list
mailing list