From: Jarry <mr.jarry@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] vsftpd: how can I chroot both anon and auth users to the same dir?
Date: Fri, 19 Aug 2011 20:44:33 +0200 [thread overview]
Message-ID: <4E4EAF11.6080809@gmail.com> (raw)
In-Reply-To: <CAEH5T2NUGAs_r9SPxN-EEsmorJ+=-QDYqTAtuTEPjs4E9sT6mQ@mail.gmail.com>
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.
prev parent reply other threads:[~2011-08-19 18:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-10 16:37 [gentoo-user] vsftpd: how can I chroot both anon and auth users to the same dir? Jarry
2011-08-10 17:35 ` Michael Orlitzky
2011-08-10 17:52 ` Jarry
2011-08-10 18:19 ` Michael Orlitzky
2011-08-10 18:36 ` Paul Hartman
2011-08-19 18:44 ` Jarry [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E4EAF11.6080809@gmail.com \
--to=mr.jarry@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox