Magellan Linux

Contents of /trunk/proftpd/patches/proftpd-1.3.3-config-anonymous.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 991 - (show annotations) (download)
Wed Mar 3 19:08:46 2010 UTC (14 years, 2 months ago) by niro
File size: 2608 byte(s)
files and updates for proftpd-1.3.3 with optional mysql, ldap, tls and anonymous support

1 diff -Naur proftpd-1.3.3/sample-configurations/basic.conf proftpd-1.3.3-magellan/sample-configurations/basic.conf
2 --- proftpd-1.3.3/sample-configurations/basic.conf 2010-03-03 19:45:08.000000000 +0100
3 +++ proftpd-1.3.3-magellan/sample-configurations/basic.conf 2010-03-03 19:50:22.000000000 +0100
4 @@ -95,26 +95,57 @@
5 BanControlsACLs all allow user ftpadm
6 </IfDefine>
7
8 -# A basic anonymous configuration, no upload directories.
9 +# A basic anonymous configuration, with an upload directory
10 +# Enable this with PROFTPD_OPTIONS=-DANONYMOUS in /etc/conf.d/proftpd
11 +<IfDefine ANONYMOUS>
12 + <Anonymous ~ftp>
13 + User ftp
14 + Group ftp
15 + AccessGrantMsg "Anonymous login ok, restrictions apply."
16
17 -# <Anonymous ~ftp>
18 -# User ftp
19 -# Group ftp
20 -#
21 -# # We want clients to be able to login with "anonymous" as well as "ftp"
22 -# UserAlias anonymous ftp
23 -#
24 -# # Limit the maximum number of anonymous logins
25 -# MaxClients 10
26 -#
27 -# # We want 'welcome.msg' displayed at login, and '.message' displayed
28 -# # in each newly chdired directory.
29 -# DisplayLogin welcome.msg
30 -# DisplayFirstChdir .message
31 -#
32 -# # Limit WRITE everywhere in the anonymous chroot
33 -# <Limit WRITE>
34 -# DenyAll
35 -# </Limit>
36 -# </Anonymous>
37 + # We want clients to be able to login with "anonymous" as well as "ftp"
38 + UserAlias anonymous ftp
39
40 + # Limit the maximum number of anonymous logins
41 + MaxClients 10 "Sorry, max %m users -- try again later"
42 +
43 + # Put the user into /pub right after login
44 + #DefaultChdir /pub
45 +
46 + # We want 'welcome.msg' displayed at login, '.message' displayed in
47 + # each newly chdired directory and tell users to read README* files.
48 + DisplayLogin /welcome.msg
49 + DisplayChdir .message
50 + DisplayReadme README*
51 +
52 + # Cosmetic option to make all files appear to be owned by user "ftp"
53 + DirFakeUser on ftp
54 + DirFakeGroup on ftp
55 +
56 + # Limit WRITE everywhere in the anonymous chroot
57 + <Limit WRITE SITE_CHMOD>
58 + DenyAll
59 + </Limit>
60 +
61 + # An upload directory that allows storing files but not retrieving
62 + # or creating directories.
63 + <Directory uploads/*>
64 + AllowOverwrite no
65 + <Limit READ>
66 + DenyAll
67 + </Limit>
68 +
69 + <Limit STOR>
70 + AllowAll
71 + </Limit>
72 + </Directory>
73 +
74 + # Don't write anonymous accesses to the system wtmp file (good idea!)
75 + WtmpLog off
76 +
77 + # Logging for the anonymous transfers
78 + ExtendedLog /var/log/proftpd/access.log WRITE,READ default
79 + ExtendedLog /var/log/proftpd/auth.log AUTH auth
80 +
81 + </Anonymous>
82 +</IfDefine>