Help - Search - Members - Calendar
Full Version: Creating extra FTP accounts with script
Hostony Board > General Support > General Support
MartinB
Hello ppl:

Somebody knows if exist a way for create ftp accounts with a shell script or something like that? i need create 30 extra ftp accounts for 1 domain and im looking for the way to do that generating the accounts data with a program and then create all the accounts in one step with a shell script parsing the data file........

can you understand the idea ? unsure.gif
Thanks smile.gif
Vanya
i'll bet 50M of diskspace that you won't succeed in this tongue.gif
MartinB
smile.gif
Alec
Ok, here is a php script:

CODE
<?

$socket = fsockopen("$yourdomain",2082);

if(!$socket)
{
print('Socket error');
exit();
}


// Place $cpaneluser, $cpanelpass, $yourdomain in secure place

$authstr = "$cpaneluser:$cpanelpass";
$pass = base64_encode($authstr);


// $ustring is an ftp login and home directory. $password is an ftp password
  replace x with your real them name, e.g. x2 or xlagoon

$in = "GET /frontend/x/ftp/doaddftp.html?login=$ustring&password=$password&homedir=$ustring\r\n HTTP/1.0\r\nHost:$yourdomain\r\nAuthorization: Basic $pass\r\n\r\n";


fputs($socket,$in);
while (!feof($socket)) {
fgets ($socket,128);
}
fclose($socket);

?>


2 Vanya: I really need 50 M of diskspace urgently. Please help me smile.gif
Webslave
With my FTP programm i can build up 3 connections simultaneously. Having 30 would be nice because in this way i would be able to upload my 3 GB site more quickly when there are updates.

Where do you apply this script or is it only for Users that have package starting with Virtual Server ?
Vanya
We limit max number of sim clients with the same IP address on our server.
On Virtual Dedicated you can configure ftp server as you need...
MartinB
Alec:
thank you very much, i will test and use this script soon.
that script will really simplify my work. wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here