From owner-freebsd-questions@FreeBSD.ORG Thu Jul 3 10:00:04 2003 Return-Path: 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 54C9037B401 for ; Thu, 3 Jul 2003 10:00:04 -0700 (PDT) Received: from haggis.it.ca (haggis.it.ca [216.126.86.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A2CD4401F for ; Thu, 3 Jul 2003 10:00:03 -0700 (PDT) (envelope-from paul@haggis.it.ca) Received: from haggis.it.ca (paul@localhost [127.0.0.1]) by haggis.it.ca (8.12.9/8.12.9) with ESMTP id h63GxlU9093905 for ; Thu, 3 Jul 2003 12:59:47 -0400 (EDT) (envelope-from paul@haggis.it.ca) Received: (from paul@localhost) by haggis.it.ca (8.12.9/8.12.6/Submit) id h63GxlbA093904 for freebsd-questions@freebsd.org; Thu, 3 Jul 2003 12:59:47 -0400 (EDT) (envelope-from paul) Date: Thu, 3 Jul 2003 12:59:47 -0400 From: Paul Chvostek To: freebsd-questions@freebsd.org Message-ID: <20030703165947.GA79319@mail.it.ca> References: <003901c3417d$7cc07150$6e01a8c0@CITYMOUSE> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003901c3417d$7cc07150$6e01a8c0@CITYMOUSE> User-Agent: Mutt/1.4.1i Subject: Re: Adding disk space to an FTP directory -- ideas? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2003 17:00:04 -0000 On Thu, Jul 03, 2003 at 11:09:28AM -0500, Greg Brooks wrote: > > I currently use most of /var for a depository of files that move in and > out via FTP. /var runs on a secondary hard drive in the system, along > with a partition called /storage that's currently empty. > > Only one user ("ftpuser") has login rights to the ftp system, although > it's not jailed with its own /bin directory, etc. Do you really mean "jailed", or are you talking about the user being "chrooted", as is normally done with ftp users? > The question: How do I take the available space in /storage and make it > available to the ftpuser? Adding a symlink to /storage within the FTP > area doesn't seem to work. You could try mount_null (or mount_nullfs in 5.x), though the man page gives warnings about bugs. Or you could simply mount the filespace in a directory to which "ftpuser" has access. Or you could create another user with access to /storage. Or you could use an FTP server that supports directory aliases. I don't know of one that does, but perhaps some searching would find one. For your reading pleasure, there's discussion of this for proftpd at http://proftpd.linux.co.uk/localsite/Userguide/linked/chroot-symlinks.html Lots of options. -- Paul Chvostek it.canada http://www.it.ca/ Free PHP web hosting! http://www.it.ca/web/