Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Dec 1998 14:03:24 +1030
From:      Greg Lehey <grog@lemis.com>
To:        Dean Hollister <dean@odyssey.apana.org.au>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: FTP: Following symlinks
Message-ID:  <19981219140324.E24125@freebie.lemis.com>
In-Reply-To: <Pine.BSF.4.05.9812191120370.22540-100000@odyssey.apana.org.au>; from Dean Hollister on Sat, Dec 19, 1998 at 11:21:09AM %2B0800
References:  <19981219134523.C24125@freebie.lemis.com> <Pine.BSF.4.05.9812191120370.22540-100000@odyssey.apana.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981219140324.E24125>