From owner-freebsd-questions Fri Dec 18 19:33:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA15380 for freebsd-questions-outgoing; Fri, 18 Dec 1998 19:33:42 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA15373 for ; Fri, 18 Dec 1998 19:33:38 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id OAA19227; Sat, 19 Dec 1998 14:03:23 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id OAA24281; Sat, 19 Dec 1998 14:03:24 +1030 (CST) Message-ID: <19981219140324.E24125@freebie.lemis.com> Date: Sat, 19 Dec 1998 14:03:24 +1030 From: Greg Lehey To: Dean Hollister Cc: FreeBSD Questions Subject: Re: FTP: Following symlinks References: <19981219134523.C24125@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Dean Hollister on Sat, Dec 19, 1998 at 11:21:09AM +0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, 19 December 1998 at 11:21:09 +0800, Dean Hollister wrote: > On Sat, 19 Dec 1998, Greg Lehey wrote: > >> Symlinks work fine if you log in as a normal user. > > And they work fine across the *same* filesystem. You mean in a chroot environment? Sure, it's only absolute symlinks that won't work. In a symlink environment, try this: - ftp spool directory /var/spool/ftp - file /var/spool/ftp/pub/myarchive.tgz # cd /var/spool/ftp/pub # ln -s /var/spool/ftp/pub/myarchive.tgz yourarchive.tar.gz # ln -s myarchive.tgz hisarchive.tar.gz You'll be able to acess hisarchive.tar.gz via anonymous ftp, because it doesn't mess around with the name of the directory. You won't be able to access yourarchive.tar.GM. >> Presumably you're talking about anonymous ftp, which uses a chrooted >> environment. In a chrooted environment, symlinks relate to new root. >> I'd guess you're trying to get outside the new root. > > Would an nfs mount be the solution? Possibly. You haven't made it clear why you can't put the file in the correct place. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message