cronjob to automatically create FTP account

Discussion in 'Site & Server Administration' started by JWRmedia, Nov 3, 2008.

  1. #1
    I have a user registration page on my website. Here's an example:

    John registers with:

    Username: john
    Password: password

    The script automcatically makes a folder on the site, lets say:

    mysite.com/users/john

    Is there any sort of cronjob or something I can setup that when the user registers and the new folder is created for them, through that form, an FTP account can be automatically created?

    EX: Username:
    Password: password

    And give their home directory as /home/myuser/users/john


    Been searching everywhere without a simple solution.

    Thanks a lot
     
    JWRmedia, Nov 3, 2008 IP
  2. Mxhub

    Mxhub Active Member

    Messages:
    474
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    It's possible. Are you on a shared hosting or on your own server?

    --
    joseph
     
    Mxhub, Nov 3, 2008 IP
  3. JWRmedia

    JWRmedia Banned

    Messages:
    499
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Shared hosting, at the moment.
     
    JWRmedia, Nov 4, 2008 IP
  4. JWRmedia

    JWRmedia Banned

    Messages:
    499
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #4
    A user will register on my site, say username: bob and password: mypass

    This will give them certian permissions on my site and automatically create a folder for them named "bob" (named after the username)

    I would like to setup some sort of script of cronjob that will automatically create an FTP account for that user using the same username and password they set and the home folder should be their folder (ex. /home/myacct/bob)
     
    JWRmedia, Nov 5, 2008 IP
  5. JWRmedia

    JWRmedia Banned

    Messages:
    499
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #5
    neone???? Ive been searching for 2 days and havn't found an answer to this.
     
    JWRmedia, Nov 7, 2008 IP