vsftpd基於pam_mysql做虛擬用戶認證
(1)下載epel源
[[email protected] ~]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo #下載阿裏雲的epel源 [[email protected] ~]# yum repolist
(2)安裝所需要的包
[[email protected] ~]# yum -y groupinstall "Development Tools" "Server Platform Development" [[email protected]
(3)編譯安裝pam_mysql模塊
vsftpd通過pam_mysql進行用戶驗證,需要安裝pam_mysql模塊,但是默認系統yum源不提供,所以需要編譯安裝pam_mysql模塊
[[email protected] ~]# mkdir /home/tools/ [[email protected] ~]# cd /home/tools/ [[email protected] tools]# tar xf pam_mysql-0.7RC1.tar.gz [[email protected] tools]# cd pam_mysql-0.7RC1/ [[email protected] pam_mysql-0.7RC1]# ./configure --with-mysql=/usr --with-openssl=/usr --with-pam=/usr --with-pam-mods-dir=/lib64/security [[email protected]