Return to BSD News archive
Xref: sserve comp.unix.bsd.freebsd.misc:1603 comp.dcom.sys.cisco:17814 Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news1.oakland.edu!jobone!newsxfer.itd.umich.edu!sol.ctr.columbia.edu!howland.reston.ans.net!gatech!news.mathworks.com!news.kei.com!ddsw1!not-for-mail From: mikebo@MCS.COM (Michael Borowiec) Newsgroups: comp.unix.bsd.freebsd.misc,comp.dcom.sys.cisco Subject: FreeBSD 2.0R: tftpd directory arguments don't work? Date: 1 Jun 1995 23:28:22 -0500 Organization: MCSnet, Chicago Area Public Internet Access Lines: 43 Message-ID: <3qm416$26f@Mars.mcs.com> NNTP-Posting-Host: mars.mcs.com Greetings - I'm trying to use FBSD 2.0R's (BSD 4.4 Lite) tftpd to save some Cisco router flash ROM configurations (with "copy flash tftp"). I can't seem to get tftpd to work as advertised in the man page... that is, I use the following /etc/inetd.conf line: tftp dgram udp wait nobody /usr/libexec/tftpd tftpd -l /tftp The /tftp directory is as follows: # ll /tftp drwxr-xr-x 2 nobody nobody 512 Jun 1 20:58 . drwxr-xr-x 19 root wheel 512 Jun 1 20:57 .. -rw-rw-rw- 1 nobody nobody 0 Jun 1 20:58 sam Yet when I try to do a tftp put on the file "sam" I get: ksh> tftp toybox tftp> put sam Error code 2: Access violation However, if I specify the destination directory, it works... tftp> put sam /tftp/sam Sent 240762 bytes in 5.2 seconds Isn't it enough to have put the /tftp argument on tftpd in /etc/inetd.conf? Since the Cisco absolutely can't specify a destination path, is there a way I can convince tftpd to use a default path ala SunOS's -s option: tftpd -s /tftpboot ? The man page states: Access to files may be restricted by invoking tftpd with a list of direc- tories by including up to 20 pathnames as server program arguments in /etc/inetd.conf. In this case access is restricted to files whose names are prefixed by the one of the given directories. The given directories are also treated as a search path for relative filename requests. BTW - the logging option doesn't seem to work either... Any comments/suggestions welcome. Thanks! - Mike -- -------------------------------------------------------------------------- Michael Borowiec All tied to their things, mikebo@MCS.COM they are netted by the strings... Free to flutter, in memory of their wasted wings... P.Gabriel