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.

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:
    1
    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:
    1
    No one knows?
     
  3. kalinchuk

    kalinchuk Registered

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

    Roy@ENHOST Well-Known Member

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

    Check out PHP's crypt function.

     
Loading...

Share This Page