From owner-freebsd-questions@FreeBSD.ORG Sat Apr 3 11:21:04 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 2087B16A4CE for ; Sat, 3 Apr 2004 11:21:04 -0800 (PST) Received: from inc.ru (6-2.net.incru.net [195.14.58.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 300F643D5C for ; Sat, 3 Apr 2004 11:21:03 -0800 (PST) (envelope-from moreau@myrealbox.com) X-Antispam-passed: yes X-Antispam: yes X-Antivirus-passed: yes X-Antivirus: yes X-Antivirus-result: no Received: from [81.222.241.76] (account da@io.ru HELO myrealbox.com) by inc.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP id 1304394; Sat, 03 Apr 2004 23:18:30 +0400 Message-ID: <406F0E9E.8000507@myrealbox.com> Date: Sat, 03 Apr 2004 23:21:02 +0400 From: den User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Drew Tomlinson References: <406EF598.5000508@mykitchentable.net> In-Reply-To: <406EF598.5000508@mykitchentable.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD Questions Subject: Re: 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 19:21:04 -0000 I use mount_null and have no problem with it. You need create dir in each user home and use mount_null for mount your chrooted dir with created directories as mount points . So you need add many lines in your /etc/fstab file . I think that words in manual about beta concern writing in directory that uses mount_null. I don't use write and it seems that you don't need write too. So use this fs type ( set in fstab "ro" option for this mount point). And read man for mount_null. Drew Tomlinson wrote: > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > >