Virtual Hosting With Proftpd And MySQL (Incl. Quota) - Page 3
|
5.1 Database Administration For most people it is easier if they have a graphical front-end to MySQL; therefore you can also use phpMyAdmin (in this example under http://server1.example.com/phpmyadmin/) to administrate the ftp database.
Whenever you create a new user, you only have to create entries in the tables ftpquotalimits and ftpuser so I will explain the columns of these tables here: ftpuser Table: The important columns are these (the others are handled by MySQL or Proftpd automatically, so do not fill these manually!):
ftpquotalimits Table: The important columns are these (the others are handled by MySQL or Proftpd automatically, so do not fill these manually!):
The ftpquotatallies table is used by Proftpd internally to manage quotas so you do not have to make entries there!
6 Anonymous FTP If you want to create an anonymous ftp account (an ftp account that everybody can login to without a password), you can do it like this: First we create a user and group with the name anonymous_ftp. The user has the home directory /home/anonymous_ftp: groupadd
-g 2002 anonymous_ftp (Replace 2002 with a group-/userid that is free on your system.) Then we create the directory /home/anonymous_ftp/incoming which will allow anonymous users to upload files: mkdir
/home/anonymous_ftp/incoming And finally, open /etc/proftpd.conf and append the following directives to it:
Finally restart Proftpd: /etc/init.d/proftpd restart Now anonymous users can login, and they can download files from /home/anonymous_ftp, but uploads are limited to /home/anonymous_ftp/incoming (and once a file is uploaded into /home/anonymous_ftp/incoming, it cannot be read nor downloaded from there; the server admin has to move it into /home/anonymous_ftp first to make it available to others). (Please note: You can only have one anonymous ftp account per IP address!)
References Mandrake 10.1 - Proftpd + MySQL authentication + Quotas Howto: http://www.khoosys.net/single.htm?ipg=848
Links Proftpd: http://www.proftpd.org/ MySQL: http://www.mysql.com/ phpMyAdmin: http://www.phpmyadmin.net/
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com






print: 
Recent comments
2 hours 42 min ago
4 hours 24 min ago
6 hours 50 min ago
6 hours 56 min ago
11 hours 30 min ago
13 hours 31 min ago
16 hours 54 min ago
19 hours 1 min ago
19 hours 12 min ago
21 hours 38 min ago