Proftpd on ubuntu 8.04 without usage of mysql
First of all install proftpd by launching
apt-get install proftpd
When you are asked about how would you like to run proftpd, choose standalone
Now let’s take a look on proftpd config file
There are a few options to change
UseIPv6 off
(unless you want to use ipv6 protocol)
ServerName "YourServerName"
Your server name
Umask 002
This option decide masking (chmod permissions) of new files created by proftpd. With this settings user and group has the same rights (775)
Then decomment following settings:
DefaultRoot ~ RequireValidShell off
And add to the end of file
UseReverseDNS off IdentLookups off AuthUserFile /etc/proftpd/ftpd.passwd AuthOrder mod_auth_file.c
Now we need to create some virtual user. For this operation we can use ftpasswd tool, which is a perl script installed with proftpd.
cd /etc/proftpd/
ftpasswd \ --passwd \ --name=alekc \ --uid=9000 \ --gid=33 \ --home=/var/www \ --shell=/bin/false
It will output something like
ftpasswd: creating passwd entry for user alekc ftpasswd: /bin/false is not among the valid system shells. Use of ftpasswd: "RequireValidShell off" may be required, and the PAM ftpasswd: module configuration may need to be adjusted. Password: Re-type password: ftpasswd: entry created
Restart proftpd
/etc/init.d/proftpd restart