create database ftpdb //建ftpdb 數據庫
grant select
use ftpdb //對 ftpdb 庫操作
#ftpgroup的表結構
CREATE TABLE `ftpgroup` (
`groupname` varchar(
`gid` smallint(
`members` varchar(
KEY `groupname` (`groupname`)
) TYPE=MyISAM;
#插入一條記錄
INSERT INTO `ftpgroup` VALUES (
#ftpuser的表結構
CREATE TABLE `ftpuser` (
`id` int(
`userid` varchar(
`passwd` varchar(
`uid` smallint(
`gid` smallint(
`homedir` varchar(
`shell` varchar(
`count` int(
`accessed` datetime NOT NULL default
`modified` datetime NOT NULL default
PRIMARY KEY (`id`)
) TYPE=MyISAM ;
#插入一條記錄
INSERT INTO ftpuser (userid
(
加入以下內容
########################################
DefaultRoot ~
SQLAuthTypes Plaintext Crypt
SQLAuthenticate users* groups*
SQLConnectInfo ftpdb@localhost proftpd password
SQLUserInfo ftpuser userid passwd uid gid homedir shell
SQLGroupInfo ftpgroup groupname gid members
SQLMinID
SQLHomedirOnDemand on
SQLLog PASS updatecount
SQLNamedQuery updatecount UPDATE
SQLLog STOR
SQLNamedQuery modified UPDATE
DeferWelcome on
RootLogin off
RequireValidShell off
########################################
/etc/init
用戶名
密碼
測試
From:http://tw.wingwit.com/Article/program/MySQL/201311/29494.html