From owner-freebsd-questions Sun Feb 16 13:19: 2 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 224E837B401 for ; Sun, 16 Feb 2003 13:19:01 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25F4A43F93 for ; Sun, 16 Feb 2003 13:18:58 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a123.otenet.gr [212.205.215.123]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h1GLItSe002719 for ; Sun, 16 Feb 2003 23:18:56 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.7/8.12.7) with ESMTP id h1GIjX4J098496 for ; Sun, 16 Feb 2003 20:45:33 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.7/8.12.7/Submit) id h1GIjX8S098495; Sun, 16 Feb 2003 20:45:33 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 16 Feb 2003 20:45:33 +0200 From: Giorgos Keramidas To: Walter Cc: Questions Subject: Re: allowing access to a single directory Message-ID: <20030216184533.GB86184@gothmog.gr> References: <3E4FA06D.1070508@earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E4FA06D.1070508@earthlink.net> 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 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. - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message