Installing proftpd
1. Get the latest source (as of this document it is proftpd-1.2.2rc3.tar.gz)
wget ftp://ftp.proftpd.net/distrib/proftpd-1.2.5rc1.tar.gz
2. untar it into the /usr/src/ folder
tar zxvf proftpd-1.2.5rc1.tar.gz -C /usr/src
3. Change to that directory
cd /usr/src/proftpd-1.2.5rc1
4. Configure it before make
./configure --prefix=/usr --sysconfdir=/etc
5. Build and install it
make; make install
It is now build and ready to use.
# Example 1
Setting up proftpd for anonymous access with users able to upload files and using xinetd
create a file called ftp in the folder /etc/xinetd.d with these contents
service ftp
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/proftpd
log_on_success += DURATION USERID
log_on_failure += USERID
}
create a file called /etc/proftpd.conf in the folder in /etc
ServerName "ProFTPD Anonymous Server"
ServerType inetd
Port 21
User nobody
Group nobody
TimeoutStalled 300
DefaultRoot /home
AllowAll
MaxClients 5 "Sorry, max %m users -- try again later"
User ftp
Group ftp
UserAlias anonymous ftp
DenyAll
AllowOverwrite on
edit /etc/passwd
ftp:x:14:50:FTP User:/ftproot:/sbin/bash
This configuration allows for an anonymous write only dropbox
ServerName "ProFTPD Anonymous Server"
ServerType inetd
Port 21
User nobody
Group nobody
TimeoutStalled 300
AllowAll
MaxClients 5 "Sorry, max %m users -- try again later"
User ftp
Group ftp
UserAlias anonymous ftp
DenyAll
DenyAll
AllowAll
AllowOverwrite on
Don't forget to chmod the directory