Description

This function changes an FTP user's password.

Examples


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$change_ftppass = $cpanel->api1('Ftp','passwdftp',array('user','12345luggage') ); // Call the function.

 

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $change_ftppass = $cpliveapi->api1('Ftp','passwdftp',['user','12345luggage'] ); # Call the function.

 

<cpanel Module="Ftp::passwdftp($FORM('user','pass'))">
cpapi1 --user=username Ftp passwdftp user 12345luggage

For more information and additional output options, read our Guide to cPanel API 1 documentation or run the cpapi1 --help command.  

This function does not return output.

 

Parameters

ParameterTypeDescriptionPossible valuesExample
userstring

Required

The FTP username.

A valid FTP username on the account.

user
passstring

Required

The FTP password.

A secure password.
12345luggage

Returns

This function does not return output.