Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    Mar 2004
    Location
    This Planet
    Posts
    984

    Default cpanel pure-ftpd and Mysql Authentication

    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
    Last edited by anup123; 01-22-2005 at 04:44 PM.

Similar Threads & Tags
Similar threads

  1. block cpanel user form pure-ftpd
    By vla in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-25-2007, 01:13 PM
  2. pure-ftpd 1.0.21 how to install on cpanel?
    By devGOD in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-16-2006, 10:49 AM
  3. pure-ftpd --with-mysql-
    By neoform in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-20-2005, 10:23 AM
  4. Pure-FTPd Mysql Auth
    By lee2020 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-02-2004, 06:58 PM
  5. Pure-ftpd Failed after Cpanel Update
    By jzollo66 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 10-13-2004, 12:24 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube