From owner-freebsd-questions Tue Oct 24 19:47:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-149-77.mmcable.com [24.27.149.77]) by hub.freebsd.org (Postfix) with SMTP id A58E137B479 for ; Tue, 24 Oct 2000 19:47:42 -0700 (PDT) Received: (qmail 71326 invoked by uid 100); 25 Oct 2000 02:47:42 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14838.18893.988498.833234@guru.mired.org> Date: Tue, 24 Oct 2000 21:47:41 -0500 (CDT) To: John.Place@rrd.com Cc: questions@freebsd.org Subject: Re: Anonymous FTP and Symlinks In-Reply-To: <19035127@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John.Place@rrd.com writes: > I am changing platforms for an _INTERNAL_ ftp server (to freebsd of corse). > The old platform (QNX) allowed me to set symlinks and they would be > followed. FreeBSD will not. I realize that this is because of security > purposes that it is like this but I am trying to make a seemless change of > platforms and some users will have a problem with this. Is there a way I > can force ftpd to honor symlinks? ftpd does honor symlinks. They just don't point where you want them to, because you've been chroot'ed. One possible solution is to use hardlinks. If you're making symlinks to directories, you may have to write C code (or hack the kernel :-) to get them created. There have been various versions of "loopback" or "null" file systems around at different times. If you can find one of those, you can mount the the files you want to get to in your chrooted space, and use them from there. I did this to solve the same problem on NetBSD 1.1 and 1.2; not sure how - or if - you can do it on FreeBSD.