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!

pure-ftpd and create new ftp account from PHP

Discussion in 'General Discussion' started by vertex2005, Jun 20, 2005.

  1. vertex2005

    vertex2005 Registered

    Joined:
    Jun 20, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    For first, sorry, for my English, speak not well on it.

    I need create web-based interface for automatic adding FTP users. But, I can't generating password for user. Simple like this:

    That is password - nhfycath
    That is what must be - $1$J1JH_f6V$0n4GSlFVuX6Lo8uKrmuhX0 - in /etc/proftpd/[DOMAIN]

    How can I do that on PHP?

    Please, help, that's really important. :(
     
  2. vertex2005

    vertex2005 Registered

    Joined:
    Jun 20, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    No one knows?
     
  3. kalinchuk

    kalinchuk Registered

    Joined:
    Jun 23, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    <?php
    $test = md5("nhfycath")
    echo $test;
    ?>
     
  4. Roy@ENHOST

    Roy@ENHOST Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    493
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    Los Angeles California
    FTP is not using MD5.
    They are using crypt just like /etc/shadow

    Check out PHP's crypt function.

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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