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.

Batch Add FTP Accounts and Directoreis

Discussion in 'General Discussion' started by dmullerd, Feb 13, 2014.

  1. dmullerd

    dmullerd Registered

    Joined:
    Feb 13, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I'm using cPanel to manage a web server and hosting for student websites in my web design course. I would like to give every student a directory for their web design work (domain.edu/student1) and access via ftp.

    How can I BATCH create all the directories and individual ftp accounts? Is this possible in cPanel? I also have root privileges via sudo in the command line but I'm less comfortable with this option.

    I searched the forum without much luck. Apologies if this covered elsewhere. Any help appreciated.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    There are no native options that will allow you to create multiple FTP accounts at the same time. You would have to develop a custom script using the cPanel API. Documentation on our API is available at:

    cPanel & WHM's SDK

    Ftp Module Documentation

    You can also submit a feature request for this via:

    Submit A Feature Request

    Thank you.
     
  3. dmullerd

    dmullerd Registered

    Joined:
    Feb 13, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Should I be able to create my directories and accounts from the command line?

    Thanks,

    Daniel
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    There are no included command line functions that create FTP accounts. However, creating a FTP account will automatically generate the subdirectory you assign it's privileges to. You can use the API referenced in my last post to develop a script that's ran over the command line.

    Thank you.
     
Loading...

Share This Page