ftpsubaccount: Additional FTP Accounts
The ftpsubaccount
utility is designed to manage additional FTP accounts. The utility allows the following operations:
- creating/deleting additional FTP accounts on subscriptions
- changing additional FTP account login credentials and home directory
Usage
Example
The following command creates an additional FTP account for the user johndoe on the subscription example.com, sets password userpass for the user, and specifies the /httpdocs/about
directory as the default home directory for this account.
Note: The directory /httpdocs/about
must be created before running the command, or the command will fail.
Commands
Command | Parameter | Description | Example |
---|---|---|---|
|
|
Creates the additional FTP account. Requires |
To create an additional FTP account with login name JohnDoe and password userpass on the subscription example.com: plesk bin ftpsubaccount --create JohnDoe -passwd userpass -domain example.com |
|
|
Updates configuration of the existing additional FTP account with data specified by the options. |
To change the password of additional FTP account for user with the login name JohnDoe to newpass: plesk bin ftpsubaccount --update JohnDoe -passwd newpass or plesk bin ftpsubaccount -u JohnDoe -passwd newpass |
|
|
Deletes an additional FTP account specified by login name. |
To delete the additional FTP account for the user with the login name JohnDoe: plesk bin ftpsubaccount --remove JohnDoe or plesk bin ftpsubaccount -r JohnDoe |
|
|
Displays information about specified additional FTP account. |
To view information about the additional FTP accounts for user with the login name JohnDoe: plesk bin ftpsubaccount --info JohnDoe or plesk bin ftpsubaccount -i JohnDoe |
|
|
Displays help on the use of the utility. |
To view help on the use of this utility: plesk bin ftpsubaccount --help or plesk bin ftpsubaccount -h |
Options
Option | Parameter | Description | Example |
---|---|---|---|
|
|
Sets a login name for user of additional FTP account. |
To change the login name of the additional FTP account user from JohnDoe to John: plesk bin ftpsubaccount -u JohnDoe -login John |
|
|
Sets a password for additional FTP account. |
To change the password of the additional FTP account user JohnDoe to newpassword: plesk bin ftpsubaccount -u JohnDoe -passwd newpassword |
|
|
Defines password type. |
To change the password of the additional FTP account user JohnDoe to qweqwe passed in encrypted form: plesk bin ftpsubaccount -u JohnDoe -passwd-type encrypted -passwd F.Fs3pYBcRRFQ |
|
|
Specifies a subscription on which additional FTP account is to be created. Required with |
To create the additional FTP account with the login name JohnDoe and password userpass on the subscription example.com: plesk bin ftpsubaccount --create JohnDoe -passwd userpass -domain example.com |
|
|
Sets a path to the home directory for additional FTP account. Is |
To set the home directory for the additional FTP account user JohnDoe to directory plesk bin ftpsubaccount -u JohnDoe -home /httpdocs/about The path is defined relative to the domain home directory path. The specified directory must exist. |