From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QrChe-0005vp-9i for garchives@archives.gentoo.org; Wed, 10 Aug 2011 17:36:29 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC68821C0EB; Wed, 10 Aug 2011 17:36:15 +0000 (UTC) Received: from mail2.viabit.com (mail2.viabit.com [65.246.80.16]) by pigeon.gentoo.org (Postfix) with ESMTP id 3102621C029 for ; Wed, 10 Aug 2011 17:35:20 +0000 (UTC) Received: from [10.1.1.204] (unknown [65.213.236.244]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail2.viabit.com (Postfix) with ESMTPSA id BB65637ADD for ; Wed, 10 Aug 2011 13:35:14 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orlitzky.com; s=mail2; t=1312997714; bh=IuxE7jzB2ZUG4nLkmqUBCbgMRAq0+7+nxa1Y+CLnPcM=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=UVN4axqk9B73hSDNMJGUX9UgL/yQy4+qeKCK2DX2rZjlm9x0D0kGy8rQPoiVRQHWy Sg/Uo1cULch40QeUUo2ZXzHtGNW94Cz0vqPG3EpM2UnNpA5CwPl/5pnEWstc1tqcYI pGnn9LwD52gLWwNjgy1mvkqs49s1sPaviZrrg3sQ= Message-ID: <4E42C152.5070401@orlitzky.com> Date: Wed, 10 Aug 2011 13:35:14 -0400 From: Michael Orlitzky User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110715 Lightning/1.0b3pre Thunderbird/3.1.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] vsftpd: how can I chroot both anon and auth users to the same dir? References: <4E42B3CE.3070004@gmail.com> In-Reply-To: <4E42B3CE.3070004@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: fbba3396e51bcd5e7d949fffa28987ef On 08/10/11 12:37, Jarry wrote: > Hi, > I'm using vsftpd and I'm quite satisfied, except for one > problem which I can not solve: > > Anonymous users are chrooted to base ftp-server directory > /home/ftp but local users are chrooted to their own > directories /home/ftp/$USER and they can not move higher. > The only way for them to see directories of other local > users is to log-off and log-in as anonymous. This is not > very convenient. Why should authenticated user be allowed > less (in this particular aspect) than anonymous? > > So I'd like to change it the way that both anonymous > as well as local users are chrooted to base ftp directory > /home/ftp but I do not know how to do it. > > Whe I remove "chroot_local_users=YES" from vsftpd.conf, > local users are not chrooted at all, and can move > around the whole system up to /. And when I let that > "chroot_local_users=YES" activated, they are chrooted > to home-dirs. So how can I solve this problem? Why not just chroot anonymous users to /home/ftp/public?