Change password for FTP: SITE PSWD old new : command not understood

0 votes
asked Jun 26, 2014 by Rajesh (160 points)
edited Jun 27, 2014

I am trying to change the password through C# program and i am getting the following error when i use the SITE PSWD old new

"'SITE PSWD old new': command not understood"


Can you please let me know what command i have to sue or if there is any sample code available?


Thanks,
Rajesh

Applies to: Rebex FTP/SSL

2 Answers

0 votes
answered Jun 26, 2014 by Rajesh (160 points)
edited Jun 26, 2014

Is there any other command or function like ChangePassword() should be used instead of SITE PSWD command?

Thanks,

0 votes
answered Jun 27, 2014 by Lukas Pokorny (102,170 points)
edited Jun 27, 2014

"SITE PSWD old new" is a non-standard extension of the FTP protocol and it is not implemented by all FTP servers. In fact, I guess that most FTP servers don't support it (and some only support it for a subset of authentication methods).

Some FTP servers might use a different command than SITE PSWD. For example, WS_FTP uses "SITE CPWD new" command to change the password.

Since this functionality is server-specific, our advice is to consult the documentation of your FTP server for more information.

...