Gentoo Archives: gentoo-server

From: Richard Yumul <rmy@×××××××××.com>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Dual directory perms
Date: Mon, 25 Oct 2004 19:08:38
Message-Id: 4960.149.63.53.55.1098730917.squirrel@149.63.53.55
In Reply to: [gentoo-server] Dual directory perms by Jason Qualkenbush
1 Leave the directory permissions as 755 (or whatever you want that allows
2 access) and setup the FTP directory as a true anonymous directory,
3 disabling the RETR, READ, RMD, DELE, & DIRS commands.
4
5 I've done it w/ ProFTPD, and I imageine other FTP servers should support it.
6
7 Then just setup your samba share & you should be all set.
8
9 Hope this helps,
10 Rich Yumul
11
12
13 >
14 > I have a directory used for FTP with perms 330. Kind of like an anon
15 > upload only directory. The problem is that, internally, I'd like to use
16 > samba to browse this directory to receive the files.
17 >
18 > I need the directory contents hidden if you ftp, and then be able to
19 > allow samba users to see the directory. (ftp is external access, samba
20 > is internal access)
21 >
22 > Ln -s doesn't do it.
23 >
24 > Rsync and copy commands are out.
25 >
26 > The only thing I could think of was to create a loopback/vitrual file
27 > system and mount it twice with different permissions at each mount
28 > point.
29 >
30 > Am I missing something easy?
31 >
32 > -Jason
33 >
34
35
36 ________________________________________________
37 Richard M. Yumul
38 SDTechnix
39 http://www.sdtechnix.com
40 ________________________________________________