From owner-freebsd-isp Tue Mar 6 9: 3:40 2001 Delivered-To: freebsd-isp@freebsd.org Received: from hermes.mail.nl.demon.net (hermes.mail.nl.demon.net [194.159.72.197]) by hub.freebsd.org (Postfix) with ESMTP id 23FDE37B72E for ; Tue, 6 Mar 2001 09:03:30 -0800 (PST) (envelope-from stanley@nl.demon.net) Received: from westlands.noc.nl.demon.net ([194.159.72.127]) by hermes.mail.nl.demon.net with esmtp (Exim 3.22 #1) id 14aKrx-0008j9-00; Tue, 06 Mar 2001 18:03:29 +0100 Received: from stanley by westlands.noc.nl.demon.net with local (Exim 3.16 #1) id 14aKrx-000Oz8-00; Tue, 06 Mar 2001 18:03:29 +0100 Date: Tue, 6 Mar 2001 18:03:29 +0100 From: Stanley Westerveld To: "Andy [TECC NOPS]" Cc: isp@FreeBSD.ORG Subject: Re: tftpd upload question Message-ID: <20010306180329.D94782@westlands.noc.nl.demon.net> References: <5.0.2.1.2.20010306170721.032817b0@mail.mcnet.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from andy@tecc.co.uk on Tue, Mar 06, 2001 at 04:20:45PM -0000 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Mar 06, 2001 at 04:20:45PM -0000, Andy [TECC NOPS] wrote: > Yeah, in the past I have had to create > the upload file on the server first > by cp /dev/null /tftpboot/filename > and set it's perm before the upload. > Anyone know a better solution? cp /dev/null /tftpboot/filename is a few more key strokes than what I'd prefer. Why not simply use "touch filename" ? As for the permissions; it's tftp, with the T for trivial. From the manpages: BUGS Because there is no user-login or validation within the TFTP protocol, the remote site will probably have some sort of file-access restrictions in place. The exact methods are specific to each site and therefore difficult to document here. Let's simply be happy with the fact that the tftp command makes you create the file and set the permissions manualy. Some day, it'll save you from overwriting some essential configuration file.... Stanley -- "There is no spoon" stanley@nl.demon.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message