When you disable the FTP role, the system disables this function.
SecurityBasicAuth
Request
query Parameters
user
required
string
The new FTP account username.
Example: user=username
disallowdot
integer
Default: 1
Whether to strip dots (.) from the username.
1 — Strip dots.
0 — Do not strip dots.
Enum:01
Example: disallowdot=1
domain
string <domain>
The FTP user's associated domain. This must be a domain that the cPanel account owns.
Note:
This parameter defaults to the cPanel account's primary domain.
Example: domain=example.com
homedir
string <path>
The path to the FTP account's root directory, relative to the cPanel account's home directory. If you don't set this, it defaults to a directory with the same name as the FTP account.
Example: homedir=exampleftp
pass
string
The new FTP account password.
Note:
You can use the pass_hash parameter in place of this parameter. However, you cannot use both the pass and pass_hash parameters in the same request.
Example: pass=123456luggage
pass_hash
string
Default: ""
The account's password hash.
Note:
You can use this parameter in place of the pass parameter. However, you cannot use both the pass and pass_hash parameters in the same request.
You can find your server's password hash type in the /etc/sysconfig/authconfig file.