Proftpd 建表

來源:互聯網
上載者:User

ProFTPD是繼Wu-FTP之後最為流行的FTP伺服器軟體。我們來看看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. );  

通過上面的代碼的說明,你們可以進行Proftpd 建表了,希望對你們有用!

  • 無法找到Package Proftpd 解決之法
  • Proftpd之調試篇
  • Proftpf如何?匿名登入
  • 實現Proftpf將其以後的訪問限定在某個目錄下
  • Proftpd不顯示ftp伺服器版本資訊以增強安全性
  • Proftpd環境下設定虛擬機器主機
  • Proftpd 許可權限制
  • ProFTPD 安裝與配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.