From owner-freebsd-questions@FreeBSD.ORG Sat Apr 3 09:34:18 2004 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 A907116A4CE for ; Sat, 3 Apr 2004 09:34:18 -0800 (PST) Received: from relay01.roc.ny.frontiernet.net (relay01.roc.ny.frontiernet.net [66.133.131.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4062043D46 for ; Sat, 3 Apr 2004 09:34:18 -0800 (PST) (envelope-from drew@mykitchentable.net) Received: (qmail 31481 invoked from network); 3 Apr 2004 17:34:17 -0000 Received: from 67-51-124-168.dsl1.elk.ca.frontiernet.net (HELO blacklamb.mykitchentable.net) ([67.51.124.168]) (envelope-sender )SMTP for ; 3 Apr 2004 17:34:17 -0000 Received: from mykitchentable.net (lugalong.mykitchentable.net [192.168.1.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 685693BF4A9 for ; Sat, 3 Apr 2004 09:34:16 -0800 (PST) Message-ID: <406EF598.5000508@mykitchentable.net> Date: Sat, 03 Apr 2004 09:34:16 -0800 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Symlinks & chroot - Is it Possible? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2004 17:34:18 -0000 I have a few users that I wish to allow FTP access on my 4.9-RELEASE-p4 system. I've setup their accounts and added them to /etc/ftpchroot to lock them into their login directories. They are in the standard /home/user dirs. However, I want all of them to have access to another directory (/ftp/share) that is setup read-only. I tried adding a symlink to /ftp/share but I've found this doesn't work when the user is chrooted. I've Googled on this issue. A FAQ for PureFTPd confirms this and suggests mount_null. But the man page for mount_null says that the code is beta and may wipe out a file system. What is the best way to achieve my objective? If mount_null is it, how do I use it? Do I include it in some sort of login script? I've set these users shells to nologin. How would that work? Thanks, Drew