Can i create FTP user accounts programmatically?

0 votes
asked Apr 14, 2010 by Sampath (150 points)
edited Mar 30, 2011

Hi, Please suggest me, How can i create FTP user accounts?

Applies to: Rebex FTP/SSL

1 Answer

0 votes
answered Apr 14, 2010 by Lukas Pokorny (115,410 points)
edited Apr 14, 2010
 
Best answer

Hello,

Unfortunately, this functionality (creating FTP user accounts) is not defined by the FTP protocol or any of its well-known extensions.

  • FTP server might offer some custom commands to achieve this (through SITE command, for example), but we are not aware of any FTP server that would actually do this.
  • FTP server might offer this functionality through some custom (non-FTP) protocol.
  • Some FTP servers might store user account information in the filesystem or in a database and allow a custom application to access this, making it possible to add new users.
  • On some FTP servers, creating user accounts programatically might not even be possible.
  • Some FTP servers share the user accounts with the OS. Creating an FTP user account is then the same as creating an OS user account.

Please refer to your FTP server's manual for information about the user database or creating FTP accounts. Or just ask the server vendor. Or let us know what FTP server you use - we are quite familiar with some of them.

commented Apr 14, 2010 by Sampath (150 points)
Thanks for your quick reply, Actually we are having open SSH FTP server, which is running on Windows Server 2003. So can you please suggest us,is it possible to create new ftp user programatically? If yes please tell me how can i do it.
commented Apr 14, 2010 by Martin Vobr (12,940 points)
Windows Server 2003 does not include the SSH FTP (SFTP) server out of the box. Could you be more specific and let us know which SSH FTP server are you using? Ideally with a link to vendor's website. Then we might be able to find a way how to create users. For differences between FTP, FTP/SSL, SFTP and SSH FTP see http://www.rebex.net/kb/secure-ftp.aspx
...