From owner-freebsd-questions Sun Feb 16 13:47:55 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 790DF37B401 for ; Sun, 16 Feb 2003 13:47:54 -0800 (PST) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-13.pit.adelphia.net [24.53.161.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9680A43F3F for ; Sun, 16 Feb 2003 13:47:53 -0800 (PST) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) by pa-plum1b-166.pit.adelphia.net (8.12.3/8.12.3) with ESMTP id h1GLlerX004242; Sun, 16 Feb 2003 16:47:40 -0500 (EST) (envelope-from wmoran@potentialtech.com) Message-ID: <3E5006FC.9040304@potentialtech.com> Date: Sun, 16 Feb 2003 16:47:40 -0500 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021127 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Walter Cc: Giorgos Keramidas , Questions Subject: Re: allowing access to a single directory References: <3E4FA06D.1070508@earthlink.net> <20030216184533.GB86184@gothmog.gr> <3E5003C7.2020302@earthlink.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Walter wrote: > Giorgos Keramidas wrote: > >> On 2003-02-16 09:30, Walter wrote: >> >>> I want to allow an anonymous FTP user to see a directory in another >>> slice, so I put a symbolic link to it. But then anyone could access >>> my entire file system by appending combinations of "../" to a path >>> name; e.g. "ls share/../". Is there a way to stop this by only >>> allowing access to the linked directory and nothing more? >> >> >> Symlinks in anonymous FTP don't work, since anonymous ftp sessions are >> chrooted in the home directory of the `ftp' user. You should probably >> move the files in ~ftp/stuff and then symlink to ~ftp/stuff from other >> parts of your tree. > > The /var slice does not have enough space to hold > these files. So it sounds like I need to find > another solution (like move in another HD). Thanks. You could always move the FTP directory to a slice that has room. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message