最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
ubuntu系统中puref-ftpd安装配置教程
时间:2014-12-30 编辑:简简单单 来源:一聚教程网
1.安装pureftpd
sudo apt-get install pure-ftpd
sudo apt-get install pure-ftpd-mysql
2.创建数据库和存放ftp用户表
CREATE TABLE `users` (
`User` VARCHAR(16) NOT NULL DEFAULT '',
`Password` VARCHAR(64) NOT NULL DEFAULT '',
`Uid` VARCHAR(11) NOT NULL DEFAULT '-1',
`Gid` VARCHAR(11) NOT NULL DEFAULT '-1',
`Dir` VARCHAR(128) NOT NULL DEFAULT '',
`comment` tinytext NOT NULL,
PRIMARY KEY (`User`),
UNIQUE KEY `User` (`User`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='FTP用户'
3.配置
编辑/etc/pure-ftpd/db/mysql.conf
#MYSQLServer localhost
#MYSQLPort 3306
MYSQLUser pureftpd
MYSQLPassword ftpdpass
MYSQLDatabase pureftpd
#MYSQLCrypt md5, cleartext, crypt() or password() – md5 is VERY RECOMMENDABLE uppon cleartext
MYSQLCrypt md5
4.一些配置
//限制用户在自己家目录
echo “yes” >/etc/pure-ftpd/conf/ChrootEveryone
echo “no” >/etc/pure-ftpd/conf/AnonymousOnly
相关文章
- 快速安装及配置FTP(ProFTPD)服务器教程 06-20
- ubuntu安装配置proftpd方法总结 11-05
- Ubuntu安装和配置ftp服务器步骤 10-23
- win11内核隔离和内存完整性介绍 10-31
- win10全屏缩放设置教程 10-31
- win10系统备份出错解决教程 10-31