Create a table using Proftpd

Source: Internet
Author: User

ProFTPDIt is the most popular FTP server software After Wu-FTP. Let's take a look at the code for creating a table in Proftpd.

 
 
  1. CREATE TABLE FTPGRPS(  
  2. groupname text NOT NULL,  
  3. gid smallint(6) NOT NULL default 0,  
  4. members text NOT NULL  
  5. )  
  6.  
  7.  
  8. INSERT INTO FTPGRPS VALUES ('FTPGRP', 2001, 'FTPUSR');  
  9. INSERT INTO FTPGRPS VALUES ('ftpusers', 2002, 'ftp');  
  10.  
  11. CREATE TABLE FTPUSERS (  
  12. userid text NOT NULL,  
  13. passwd text NOT NULL,  
  14. uid int(11) NOT NULL default '0',  
  15. gid int(11) NOT NULL default '0',  
  16. homedir text,  
  17. shell text  
  18. )  
  19.  
  20.  
  21. INSERT INTO FTPUSERS VALUES ('lcx1', '123456', 2001, 2001, '/home/www/lcx1', "");  
  22.  
  23.  
  24. CREATE TABLE quotalimits (  
  25. name varchar(30) default NULL,  
  26. quota_type enum('user','group','class','all') NOT NULL default 'user',  
  27. per_session enum('false','true') NOT NULL default 'false',  
  28. limit_type enum('soft','hard') NOT NULL default 'soft',  
  29. bytes_in_avail float NOT NULL default 0,  
  30. bytes_out_avail float NOT NULL default 0,  
  31. bytes_xfer_avail float NOT NULL default 0,  
  32. files_in_avail int(10) unsigned NOT NULL default 0,  
  33. files_out_avail int(10) unsigned NOT NULL default 0,  
  34. files_xfer_avail int(10) unsigned NOT NULL default 0  
  35. )  
  36.  
  37.  
  38. CREATE TABLE quotatallies (  
  39. name VARCHAR(30) NOT NULL,  
  40. quota_type ENUM("user", "group", "class", "all") NOT NULL,  
  41. bytes_in_used FLOAT NOT NULL,  
  42. bytes_out_used FLOAT NOT NULL,  
  43. bytes_xfer_used FLOAT NOT NULL,  
  44. files_in_used INT UNSIGNED NOT NULL,  
  45. files_out_used INT UNSIGNED NOT NULL,  
  46. files_xfer_used INT UNSIGNED NOT NULL  
  47. );  

Through the code above, you can create a table using Proftpd. I hope it will be useful to you!

  • Solution to Package Proftpd failure
  • Proftpd debugging
  • How to Implement Anonymous Logon using Proftpf
  • Implement Proftpf to limit future access to a directory
  • Proftpd does not display ftp server version information for enhanced security
  • Set virtual hosts in Proftpd Environment
  • Proftpd permission Restriction
  • ProFTPD installation and configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.