安装archlinux之后发现缺少很多常用工具 比如ifconfig ftp等
ifconfig需要安装net-tools
nslookup需要dnsutils
ftp需要inetutils
另外安装vsftpd配置虚拟用户需要的pam_mysql.so需要去github上下载 目前能用的是最新的1.0bate
https://github.com/NigelCunningham/pam-MySQL
编译安装之后放到/usr/lib/security 目标文件名是libpam_mysql.so 为了避免和已存在的冲突所以前面加上lib
#%PAM-1.0 auth sufficient /usr/lib/security/libpam_mysql.so user=test passwd=test host=localhost db=db_system table=tb_sys_ftpuser usercolumn=username passwdcolumn=password crypt=2 account sufficient /usr/lib/security/libpam_mysql.so user=test passwd=test host=localhost db=db_system table=tb_sys_ftpuser usercolumn=username passwdcolumn=password crypt=2 auth required /lib/security/pam_unix.so shadow nullok auth required /lib/security/pam_shells.so session required /lib/security/pam_loginuid.so account required /lib/security/pam_unix.so session required /lib/security/pam_unix.so
配置成这样就行了 另外在debian上官方包依然能用(debian更新的真慢)