The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cpanel pure-ftpd and Mysql Authentication

Discussion in 'General Discussion' started by anup123, Jan 22, 2005.

  1. anup123

    anup123 Well-Known Member

    Mar 29, 2004
    Likes Received:
    Trophy Points:
    This Planet
    Always used pure-ftpd but was missing the authentication against Mysql Databases also. I have webmail with dynamic virtual hosting and wanted tp give ftp access (and avoid web based filemanagerfor obvious reasons). This is how i could manage finally (Hope it doesn't break other things ... so far it hasn't though)

    Download the src.rpm from

    rpmbuild --rebuild --define 'with_mysql 1' ...src.rpm
    rpm -Uvh pure-ftpd...rpm --force

    edit pure-ftpd.conf to uncomment the Mysql Authentication part.
    edit /etc/rc.d/init.d/pure-ftpd to include lmysql:/etc/pureftpd-mysql.conf

    put up the necessary details in /etc/pureftpd-mysql.conf file

    restarted pure-ftpd

    and it authenticates off the Mysql database also in addition to the default authentication.

    host : user.domain.tld
    username: user@domain.tld
    password : userpassword

    Wow. So easy.
    If this has any pitfalls, please do point out.
    If this is fine....

    I WISH cPanel gets rpms with --with-mysql built into it so that all this can be avoided except perhaps for adding the additional switch in the startup file....

    [EDIT] Here is the Official Feature Request Quite Sometime back:


    #1 anup123, Jan 22, 2005
    Last edited: Jan 22, 2005

Share This Page