ProFTP is a popular File Transfer Protocol (FTP) server available for unix-like operating systems. This tutorial will walk you through the steps you might need to get your ProFTP server up and running in Red Hat Enterprise Linux.
sudo yum install proftpd
Staring, restarting and stopping the server
sudo service proftpd start
sudo service proftpd restart
sudo service proftpd stop
The first step in configuring a proftpd daemon is knowing where the configuration file, usually named proftpd.conf, is located. The default location for this file is /etc/proftpd.conf or /usr/local/etc/proftpd.conf, depending on your installation.
You can edit the file as needed. Here is a configuration you will need to set up an FTP server for anonymous user access, meaning anybody will have access to the server without having to enter username and password:
<IfDefine ANONYMOUS_FTP> <Anonymous ~ftp> User ftp Group ftp AccessGrantMsg "Anonymous login ok, restrictions apply." # 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" # 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 # An upload directory that allows reading and storing files but not deletion <Directory /uploads> AllowOverwrite no <Limit DELE RMD> AllowUser ftpadm DenyAll </Limit> </Directory> # 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 </Anonymous> </IfDefine>