I’m just posting this as a back up, in fact. This configuration snippet can be used to create an anonymous FTP with read-only privilege in ProFTPd:
##Anonymous for etfiles downloads
<Anonymous /home/zengamer/sd/etfiles>
User www-data
Group nogroup
# UserAlias -- Alias a username to a system user
UserAlias anonymous www-data
<Limit LOGIN>
AllowAll
</Limit>
# Cosmetic changes, all files belongs to ftp user
#DirFakeUser on ftp
#DirFakeGroup on ftp
RequireValidShell off
# Limit the maximum number of anonymous logins
MaxClients 30
# 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
<Directory *>
<Limit WRITE DELE STOR>
DenyAll
</Limit>
<Limit READ>
AllowAll
</Limit>
</Directory>
</Anonymous>
Also, adding the following is necessary to prevent the anonymous user from browsing the whole computer:
<Global>
DefaultRoot ~
</Global>
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.