Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cpanel pure-ftpd and Mysql Authentication

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

  1. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    890
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    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 http://diff.cpanel.net/ftpinstall/pure-ftpd/src/

    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:

    http://bugzilla.cpanel.net/show_bug.cgi?id=1334

    [/EDIT]

    Anup
     
    #1 anup123, Jan 22, 2005
    Last edited: Jan 22, 2005
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice