diff -Naur proftpd-1.3.3/sample-configurations/basic.conf proftpd-1.3.3-magellan/sample-configurations/basic.conf --- proftpd-1.3.3/sample-configurations/basic.conf 2010-03-03 19:45:08.000000000 +0100 +++ proftpd-1.3.3-magellan/sample-configurations/basic.conf 2010-03-03 19:50:22.000000000 +0100 @@ -95,26 +95,57 @@ BanControlsACLs all allow user ftpadm -# A basic anonymous configuration, no upload directories. +# A basic anonymous configuration, with an upload directory +# Enable this with PROFTPD_OPTIONS=-DANONYMOUS in /etc/conf.d/proftpd + + + User ftp + Group ftp + AccessGrantMsg "Anonymous login ok, restrictions apply." -# -# User ftp -# Group ftp -# -# # We want clients to be able to login with "anonymous" as well as "ftp" -# UserAlias anonymous ftp -# -# # Limit the maximum number of anonymous logins -# MaxClients 10 -# -# # We want 'welcome.msg' displayed at login, and '.message' displayed -# # in each newly chdired directory. -# DisplayLogin welcome.msg -# DisplayFirstChdir .message -# -# # Limit WRITE everywhere in the anonymous chroot -# -# DenyAll -# -# + # We want clients to be able to login with "anonymous" as well as "ftp" + UserAlias anonymous ftp + # Limit the maximum number of anonymous logins + MaxClients 10 "Sorry, max %m users -- try again later" + + # Put the user into /pub right after login + #DefaultChdir /pub + + # We want 'welcome.msg' displayed at login, '.message' displayed in + # each newly chdired directory and tell users to read README* files. + DisplayLogin /welcome.msg + DisplayChdir .message + DisplayReadme README* + + # Cosmetic option to make all files appear to be owned by user "ftp" + DirFakeUser on ftp + DirFakeGroup on ftp + + # Limit WRITE everywhere in the anonymous chroot + + DenyAll + + + # An upload directory that allows storing files but not retrieving + # or creating directories. + + AllowOverwrite no + + DenyAll + + + + AllowAll + + + + # Don't write anonymous accesses to the system wtmp file (good idea!) + WtmpLog off + + # Logging for the anonymous transfers + ExtendedLog /var/log/proftpd/access.log WRITE,READ default + ExtendedLog /var/log/proftpd/auth.log AUTH auth + + +