From owner-freebsd-questions Tue Oct 24 13:51:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id 16D3637B4CF for ; Tue, 24 Oct 2000 13:51:03 -0700 (PDT) Received: from hades.hell.gr (ppp5.patr.hellasnet.gr [212.54.197.20]) by mail.hellasnet.gr (8.9.1/8.9.1) with ESMTP id SAA22154; Tue, 24 Oct 2000 18:50:52 -0200 (GMT) Received: (from charon@localhost) by hades.hell.gr (8.11.1/8.11.1) id e9OKpSa07112; Tue, 24 Oct 2000 23:51:28 +0300 (EEST) Date: Tue, 24 Oct 2000 23:51:26 +0300 From: Giorgos Keramidas To: John.Place@rrd.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Anonymous FTP and Symlinks Message-ID: <20001024235125.B6932@hades.hell.gr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from John.Place@rrd.com on Tue, Oct 24, 2000 at 01:20:33PM -0500 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Oct 24, 2000 at 01:20:33PM -0500, John.Place@rrd.com wrote: > 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? I think that it's not possible. This is because ftpd (the one included with FreeBSD and some of the others that I know of), will call chroot() and change their `/' directory to the home of the "ftp" user when anonymous ftp is used. To allow following symlinks under the new `/' directory after one has chroot'ed in it would be like making it easy to set up `exit points' from the chrooted environment. I am not sure why someone would want to do this. But why don't you just copy/move your data in the proper location under the home of the ftp user and let ftpd access them without a symlink? -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message