Gentoo Archives: gentoo-user

From: Jarry <mr.jarry@×××××.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:54:02
Message-Id: 4E42C546.4080308@gmail.com
In Reply to: Re: [gentoo-user] vsftpd: how can I chroot both anon and auth users to the same dir? by Michael Orlitzky
1 On 10-Aug-11 19:35, Michael Orlitzky wrote:
2
3 >> Anonymous users are chrooted to base ftp-server directory
4 >> /home/ftp but local users are chrooted to their own
5 >> directories /home/ftp/$USER and they can not move higher.
6 >> The only way for them to see directories of other local
7 >> users is to log-off and log-in as anonymous. This is not
8 >> very convenient. Why should authenticated user be allowed
9 >> less (in this particular aspect) than anonymous?
10 >>
11 >> So I'd like to change it the way that both anonymous
12 >> as well as local users are chrooted to base ftp directory
13 >> /home/ftp but I do not know how to do it.
14 >
15 > Why not just chroot anonymous users to /home/ftp/public?
16
17 If I wanted to have one more problem (anonymous users not
18 able to access local users' files) I would do it... :-)
19
20 I'll try to explain it one more time. I have local users
21 "user1", "user2", "userX" and their home directories are:
22 /home/ftp/user1
23 /home/ftp/user2
24 /home/ftp/userX
25
26 Anonymous users are chrooted to /home/ftp, so they can access
27 files stored in /home/ftp/user1 (user2, userX). That is OK,
28 that is what I want. But local user1 is chrooted to
29 /home/ftp/user1, so he can't access files in /home/ftp/user2
30 (or /home/ftp/userX).
31
32 And *this* is what I want to solve: to give local users
33 the same possibility to access other users' files (if file
34 access permissions allow it, of course). So I want to chroot
35 local users to the very same /home/ftp directory where
36 anonymous users are chrooted, but I do not know how...
37
38 Jarry
39
40 --
41 _______________________________________________________________
42 This mailbox accepts e-mails only from selected mailing-lists!
43 Everything else is considered to be spam and therefore deleted.

Replies

Subject Author
Re: [gentoo-user] vsftpd: how can I chroot both anon and auth users to the same dir? Michael Orlitzky <michael@××××××××.com>