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 1QrCyf-0007Ht-UR for garchives@archives.gentoo.org; Wed, 10 Aug 2011 17:54:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF4B221C11B; Wed, 10 Aug 2011 17:53:49 +0000 (UTC) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 19B4C21C076 for ; Wed, 10 Aug 2011 17:52:51 +0000 (UTC) Received: by fxd23 with SMTP id 23so1435495fxd.40 for ; Wed, 10 Aug 2011 10:52:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=nu2hze/fAqy7D8b0VO4E1GTt2UPogfNpYUfF9dMjhFs=; b=ri65gZ88U96vu4d0VzKxG3NB3kM+Jw8b276YrWJulKzCJPMErK/djf4uGTZIBsPjQi HyqhrJt6s2R7mlDCQDMlIoGX9VZ+cyUPG0Wp/fK5mCvt6kyLr7HA5wtajrn/80jDBfv0 vl2civPLLp7puAJxHvvB+IuHFeB7JVgMvBihc= Received: by 10.223.47.9 with SMTP id l9mr11464127faf.55.1312998771287; Wed, 10 Aug 2011 10:52:51 -0700 (PDT) Received: from [10.0.0.11] ([88.151.72.89]) by mx.google.com with ESMTPS id j18sm899448faa.22.2011.08.10.10.52.50 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 10 Aug 2011 10:52:50 -0700 (PDT) Message-ID: <4E42C546.4080308@gmail.com> Date: Wed, 10 Aug 2011 19:52:06 +0200 From: Jarry User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 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> <4E42C152.5070401@orlitzky.com> In-Reply-To: <4E42C152.5070401@orlitzky.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 1cdb49baeb75d6a4fa021fd60fa294be On 10-Aug-11 19:35, Michael Orlitzky wrote: >> 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. > > Why not just chroot anonymous users to /home/ftp/public? If I wanted to have one more problem (anonymous users not able to access local users' files) I would do it... :-) I'll try to explain it one more time. I have local users "user1", "user2", "userX" and their home directories are: /home/ftp/user1 /home/ftp/user2 /home/ftp/userX Anonymous users are chrooted to /home/ftp, so they can access files stored in /home/ftp/user1 (user2, userX). That is OK, that is what I want. But local user1 is chrooted to /home/ftp/user1, so he can't access files in /home/ftp/user2 (or /home/ftp/userX). And *this* is what I want to solve: to give local users the same possibility to access other users' files (if file access permissions allow it, of course). So I want to chroot local users to the very same /home/ftp directory where anonymous users are chrooted, but I do not know how... Jarry -- _______________________________________________________________ This mailbox accepts e-mails only from selected mailing-lists! Everything else is considered to be spam and therefore deleted.