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 1QuU5V-0006Ce-W1 for garchives@archives.gentoo.org; Fri, 19 Aug 2011 18:46:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 38C9421C105; Fri, 19 Aug 2011 18:46:25 +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 8F26621C0A6 for ; Fri, 19 Aug 2011 18:45:25 +0000 (UTC) Received: by fxd23 with SMTP id 23so2605702fxd.40 for ; Fri, 19 Aug 2011 11:45:24 -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=TrXkJX2F5fyz4hzS3UTEI/kbeSC32H+u71NvRrThKOY=; b=cjiyqBqJzklnIcVU8bWfjPhNECvktL0xVn91BiycrjLbPAphD8tPM68uNfYgXPyomU dEUdOORffQ2FJEPRO8V0MGbZYSEzNPRLRq9WSDP+mWzgwAVai1Iv9A7g3OKRWuxi9Ekf ZVUkpA4nwflPaVLrRKJ7QwstSEoUKsnA2RDo8= Received: by 10.223.98.78 with SMTP id p14mr127220fan.8.1313779524715; Fri, 19 Aug 2011 11:45:24 -0700 (PDT) Received: from [10.0.0.11] ([88.151.72.7]) by mx.google.com with ESMTPS id c7sm2776731fac.36.2011.08.19.11.45.21 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Aug 2011 11:45:22 -0700 (PDT) Message-ID: <4E4EAF11.6080809@gmail.com> Date: Fri, 19 Aug 2011 20:44:33 +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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: db5948d425141a3a8ddaf29b9b26cbb0 On 10-Aug-11 20:36, Paul Hartman wrote: > >> 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. > > Set user_config_dir to point to someplace such as /etc/vsftpd/users > In that directory, create files for each username and within it put: > local_root=/home/ftp Actually, instead of creating file for each username I included these options in main config file /etc/vsftpd/vsftpd.conf: chroot_local_user=YES local_root=/home/ftp Now it works as I expected: both anonymous & local users are chrooted to /home/ftp and can enter any sub-directory, but local users can upload files to /home/ftp/$USER (homedirs where they have write permission). On 10-Aug-11 20:19, Michael Orlitzky wrote: > > Are they local users? Change their home directories to /home/ftp. I did not test this, but it might work too. The only drawback is I'd have to edit /etc/passwd always when I add new user. Problem solved, thank you for help... Jarry -- _______________________________________________________________ This mailbox accepts e-mails only from selected mailing-lists! Everything else is considered to be spam and therefore deleted.