Installing & Configuring PROFTPD FTP Service on Ubuntu 10.04 Lucid Lynx

01 # Install proftpd
02 sudo apt-get install proftpd
03
04 # During installation you can choose to install as an inetd service,
05 # or a standalone server.  I read and followed the advice of installing
06 # as an inetd service since I won't have many users.
07
08 # Backup the configuration file incase you mess something up!
09 sudo cp /etc/proftpd/proftpd.conf /etc/proftpd/proftpd.conf.original
10
11 # Open the config for edit
12 sudo nano /etc/proftpd/proftpd.conf
13
14 # Change your server name to whatever you like
15 ServerName "whatever.mydomain.com"
16
17 # Uncomment the line to restrict users to their home directory
18 DefaultRoot ~
19
20 # Uncomment the large block of commented code at the end of the
21 # config to enable anonymous user access
22 <Anonymous ~ftp>
23 ...
24 </Anonymous>
25
26 # Save your changes and then restart the service
27 sudo service proftpd restart
28
29 # You can modify your welcome message at
30 sudo nano /home/ftp/welcome.msg
31
32 # And you can put a custom message in any folder to have it
33 # displayed when accessed
34 sudo nano /home/johndoe/.message
35
36 # That's it!  Connect from any FTP client.  Be careful of your file permissions
37 # if you decide to create custom FTP users and change there home directories
38 # to a fileshare or something.