Gentoo Archives: gentoo-user

From: Michael Orlitzky <michael@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] vsftpd: how can I chroot both anon and auth users to the same dir?
Date: Wed, 10 Aug 2011 17:36:29
Message-Id: 4E42C152.5070401@orlitzky.com
In Reply to: [gentoo-user] vsftpd: how can I chroot both anon and auth users to the same dir? by Jarry
1 On 08/10/11 12:37, Jarry wrote:
2 > Hi,
3 > I'm using vsftpd and I'm quite satisfied, except for one
4 > problem which I can not solve:
5 >
6 > Anonymous users are chrooted to base ftp-server directory
7 > /home/ftp but local users are chrooted to their own
8 > directories /home/ftp/$USER and they can not move higher.
9 > The only way for them to see directories of other local
10 > users is to log-off and log-in as anonymous. This is not
11 > very convenient. Why should authenticated user be allowed
12 > less (in this particular aspect) than anonymous?
13 >
14 > So I'd like to change it the way that both anonymous
15 > as well as local users are chrooted to base ftp directory
16 > /home/ftp but I do not know how to do it.
17 >
18 > Whe I remove "chroot_local_users=YES" from vsftpd.conf,
19 > local users are not chrooted at all, and can move
20 > around the whole system up to /. And when I let that
21 > "chroot_local_users=YES" activated, they are chrooted
22 > to home-dirs. So how can I solve this problem?
23
24 Why not just chroot anonymous users to /home/ftp/public?

Replies