Batch Add FTP Accounts and Directoreis
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.
-
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: [url=http://docs.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/]cPanel & WHM's SDK [url=http://docs.cpanel.net/twiki/bin/view/ApiDocs/Api2/ApiFtp]Ftp Module Documentation You can also submit a feature request for this via: Submit A Feature Request Thank you. 0 -
[quote="cPanelMichael, post: 1572911">There are no native options.
Should I be able to create my directories and accounts from the command line? Thanks, Daniel0 -
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. 0
Please sign in to leave a comment.
Comments
3 comments