SmbFTPD 和 virtual mailbox 帳號整併

非常簡單….
在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
一整個很方便啦!!!

About johnpupu

..........
This entry was posted in 有的沒的 and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word