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,913
2,202
363
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.