From owner-freebsd-questions Thu Apr 12 12:27:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ra.upan.org (ra.upan.org [204.107.76.19]) by hub.freebsd.org (Postfix) with ESMTP id 73C4037B422 for ; Thu, 12 Apr 2001 12:27:40 -0700 (PDT) (envelope-from mikel@ocsinternet.com) Received: from ocsinternet.com (thoth.upan.org [204.107.76.16]) by ra.upan.org (8.11.1/8.11.1) with ESMTP id f3CJQiZ73545; Thu, 12 Apr 2001 15:26:47 -0400 (EDT) (envelope-from mikel@ocsinternet.com) Message-ID: <3AD6037C.46775C4@ocsinternet.com> Date: Thu, 12 Apr 2001 15:35:24 -0400 From: Mikel X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en,it MIME-Version: 1.0 To: Kondie Cc: freebsd-questions@FreeBSD.ORG Subject: Re: TFTP configuration References: <000101c0c3de$bfdb4bf0$0aa994d0@one.malawi.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kondie, I recommend the following; mkdir /home/tftp chown -R nobody:wheel /home/tftp set up /etc/inetd.conf like so. tftp dgram udp wait nobody /usr/libexec/tftpd tftpd /home/tftp kill -HUP `awk '/inetd/{print $1;exit}'` Ok now I've found that with cisco routers and a couple of other tftp devices like Computone termservers, if the file don't already exhist you'll get an error. So in order to avoid the problem do the following; touch /home/tftp/gw1 now you should be able to write net on a cisco router and follow the prompts. Just remember to use the name you touched instead of the one they think you should use... Ok and one final note if you've got a firewall running then remember to open tcp/udp in/out for port 69... cheers, Mikel Kondie wrote: > Hello, > > I am trying to configure tftpd on FreeBSD 4.0. I call tftp in inetd.conf > with: > > tftp dgram udp wait nobody /usr/libexec/tftpd tftpd -l -s > /kondie /tftpboot > > I have placed a file smtp.sh in the directory /kondie. When I try to tftp > localhost, it is timing out as: > $ tftp localhost > tftp> put smtp.sh > Transfer timed out. > > tftp> > > The log shows: > > chroot: /kondie: Operation not permitted. > > I have set both directories (/kondie and /tftproot) to mode 777. I also > tried running tftpd as root but the same thing happens. > > How can you assist? > > Regards, > > Kondie. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message