Virtual Hosting With Proftpd And MySQL (Incl. Quota) On Debian Etch - Page 3
7 Database AdministrationFor 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!
8 Anonymous FTPIf 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/proftpd.conf and append the following directives to it: vi /etc/proftpd/proftpd.conf
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!)
9 ReferencesMandrake 10.1 - Proftpd + MySQL authentication + Quotas Howto: http://www.khoosys.net/single.htm?ipg=848
10 Links
|
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
18 hours 50 min ago
20 hours 18 min ago
23 hours 53 min ago
1 day 2 hours ago
1 day 5 hours ago
1 day 6 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 8 hours ago
1 day 9 hours ago