Batch Add FTP Accounts and Directoreis

dmullerd

Registered
Feb 13, 2014
2
0
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.