Skip to content

Creating an anonymous FTP with ProFTPd

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>
# 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 READ>

Also, adding the following is necessary to prevent the anonymous user from browsing the whole computer:
DefaultRoot ~

Posted in FTP, Linux, servers.

0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Some HTML is OK

or, reply to this post via trackback.

Sorry about the CAPTCHA that requires JS. If you really don't want to enable JS and still want to comment, you can send me your comment via e-mail and I'll post it for you.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA