Canadaka
12-14-2004, 02:50 PM
Does anyone know if its possible, or even better know how to make a php script that can create a FTP User account on an ftp server?
I am currently running Serv-U as my ftp server, but if its possible with another ftp server i *could* switch.
Is there a bash command to create a user? I'm guessing yes, so you can run something like this:
exec("createuser username password", $output);
// if statement here to check if it was created successfully using the $output variable.
Canadaka
12-14-2004, 03:33 PM
hmm ok, but i looked through the serv-u documentation, can't find anything about controling the server through bash commands or script.
Does anyone know if this is possibly with Serv-U. If not, know of any another Windows FTP Servers?
Oh, you're on Windows. Sorry.
You're going to have to find out how users are created. In Serv-U I think they create a folder for each user but I don't know where the password is stored. So you need to create that folder via PHP and then edit the password file if there is one or if you can find it.l
Canadaka
12-14-2004, 04:13 PM
hmm i can't find where it saves its users account and password, looked at all the files in the serv-u folder. must be in the registry or proprietory file of soem sorts.
I think I might have to find another ftp server software
absolut
12-14-2004, 05:03 PM
Yes, try FileZilla Server. It stores usernames/passwords in xml-file, so you can update it with your data and then reload config file. Example command to apply new settings: "FileZilla server.exe" /reload-config
Yeah, That would be a simple task.