非常簡單….
在smbftpd.conf下 把這三個的註記拿掉
VirtualUserMapping user
VirtualUserAuthMethod mysql
VirtualUserAuthConfig /usr/local/etc/smbftpd/smbftpd_mysql.conf
再去編輯/usr/local/etc/smbftpd/smbftpd_mysql.conf
User root
Password rootpw
atabase smbftpd
Crypt crypt
SQLGetPassword SELECT password FROM mailbox WHERE username=’%U’
SQLGetHome SELECT ‘/home/web/johnpupu/ftp’ FROM mailbox WHERE username=’%U’
SQLGetGroup SELECT ‘ftp’ FROM mailbox WHERE username=’%U’
這樣一來開好mail account 就自動啟用了ftp
一整個很方便啦!!!