1.首先我们建立相应的用户与用户组 【相关文章:IPTABLES 配置方法介绍】
今天我们讲proftp+mysql+quota的应用,我想大家最期待的就是这个了吧 【扩展阅读:Debian下给apache加载ssl】
【扩展信息:IBM/Linux 奋起 Wintel 】groupadd -g 5500 ftpgroup
adduser -u 5500 -s /bin/false -d /bin/null -c "proftpd user" -g ftpgroup ftpuser2.操作数据库
mysql mysql -uroot -ppassword create database ftpdb grant select, update on ftpdb.* to proftpd@localhost identified by passworduse ftpdb
create table `ftpgroup` ( `groupname` varchar(16) not null default , `gid` smallint(6) not null default 5500, `members` varchar(16) not null default , key `groupname` (`groupname`) ) type=myisam comment=proftp group table;insert into `ftpgroup` values (ftpgroup, 5500, ftpuser);
create table `ftpquotalimits` (
`name` varchar(30) default null, `quota_type` enum(user,group,class,all) not null default user, `per_session` enum(false,true) not null default false, `limit_type` enum(soft,hard) not null default soft, `bytes_in_avail` float not null default 0, `bytes_out_avail` float not null default 0, `bytes_xfer_avail` float not null default 0, `files_in_avail` int(10) unsigned not null default 0, `files_out_avail` int(10) unsigned not null default 0, `files_xfer_avail` int(10) unsigned not null default 0 ) type=myisam;create table `ftpquotatallies` (
`name` varchar(30) not null default , `quota_type` enum(user,group,class,all) not null default user, `bytes_in_used` float not null default 0, `bytes_out_used` float not null default 0, ... 下一页