Gentoo Archives: gentoo-server

From: Zubkov Alexander <green@×××××××××××.ru>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Dual directory perms
Date: Mon, 25 Oct 2004 19:14:08
Message-Id: 417D507A.9090405@sectorb.msk.ru
In Reply to: [gentoo-server] Dual directory perms by Jason Qualkenbush
1 Jason Qualkenbush wrote:
2 > I have a directory used for FTP with perms 330. Kind of like an anon
3 > upload only directory. The problem is that, internally, I'd like to use
4 > samba to browse this directory to receive the files.
5 >
6 > I need the directory contents hidden if you ftp, and then be able to
7 > allow samba users to see the directory. (ftp is external access, samba
8 > is internal access)
9 >
10 > Ln -s doesn't do it.
11 >
12 > Rsync and copy commands are out.
13 >
14 > The only thing I could think of was to create a loopback/vitrual file
15 > system and mount it twice with different permissions at each mount
16 > point.
17 >
18 > Am I missing something easy?
19 >
20 > -Jason
21 >
22
23 If You are using ProFTPD try something like this in your proftpd.conf:
24 <Directory incoming/*>
25 <Limit READ>
26 DenyAll
27 </Limit>
28 <Limit STOR>
29 AllowAll
30 </Limit>
31 <Limit WRITE>
32 DenyAll
33 </Limit>
34 </Directory>
35
36 More examples here: http://proftpd.org/docs/example-conf.html