The domadmin utility is used to manage domain administrator accounts through CLI. The utility allows the following operations:
Syntax
domadmin <command> <domain name> [
<option_1> [<param>]
[<option_2> [<param>]]
…[<option_N> [<param>]]
Example
The following command line sets the Personal name Mary Jones for the administrator of domain example.com, allows the use of the standard user interface only for the administrator, sets the administrator's password to mypass, sets the interface language to Russian, and allows the domain content management by the domain administrator.
# ./domadmin --update example.com -pname "Mary Jones" -dashboard false -stdgui true -passwd mypass -locale ru-RU -manage_phosting true
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Updates configuration of an existing domain administrator's account with data specified in the options. |
To change a password for the domain administrator's account on domain example.com: # ./domadmin --update example.com -passwd newpassword or # ./domadmin -u example.com -passwd newpassword |
|
|
Displays information about a domain administrator's account. |
To view the information about the administrator's account on domain example.com: # ./domadmin --info example.com or # ./domadmin -i example.com |
|
|
Displays help on the use of the utility. |
To display help on the use of this utility: # ./domadmin –-help or # ./domadmin -h |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Enables or disables domain administrator's access to control panel (the Allow domain administrator access parameter). |
To disable domain administrator access to control panel on domain example.com: # ./domadmin --update example.com -status false |
|
|
Sets the domain administrator's password. See additional comments in the Note below the table. |
To change the domain administrator's password to newpassword on domain example.com: # ./domadmin -u example.com -passwd newpassword |
|
|
Specifies the type of the domain administrator's password - plain or cryptic. Is set to See additional comments in the Note below the table. |
To set the type of the domain administrator's password to cryptic on domain example.com: # ./domadmin -u example.com -passwd_type crypt |
|
|
Sets Personal name for a domain administrator. |
To change the administrator's Personal name to Michael Smith on domain example.com: # ./domadmin -u example.com -pname "Michael Smith" |
|
|
Sets Company name for a domain administrator. |
To change the administrator's Company name to Network Solutions on domain example.com: # ./domadmin -u example.com -company "Network Solutions" |
|
|
Sets the phone number (the Phone parameter) for a domain administrator. |
To change the domain administrator's phone number to (112)112-2211 on domain example.com: # ./domadmin -u example.com -phone "(112)112-2211" |
|
|
Sets the Fax number (the Fax parameter) for a domain administrator. |
To change the domain administrator's fax number to (112)112-2211 on domain example.com: # ./domadmin -u example.com -fax "(112)112-2211" |
|
|
Sets the e-mail address (the E-mail parameter) for a domain administrator. |
To change the domain administrator's E-mail to admin@for.example.com on domain example.com: # ./domadmin -u example.com -email admin@for.example.com |
|
|
Sets the street address for a domain administrator (the Address parameter). |
To change the domain administrator's Address to 22 Drury lane on domain example.com: # ./domadmin -u example.com -address "22 Drury lane" |
|
|
Sets the city for the domain administrator (the City parameter). |
To change the domain administrator's City to 'Anytown City' on domain example.com: # ./domadmin -u example.com -address "Anytown City" |
|
|
Sets the state or province for the domain administrator (the State/Province parameter). |
To change the domain administrator's State/Province to Texas on domain example.com: # ./domadmin -u example.com -state Texas |
|
|
sets ZIP/postal code for the domain administrator |
To change the domain administrator's Postal/ZIP code to 64023-1920 on domain example.com: # ./domadmin -u example.com -zip 64023-1920 |
|
|
Sets domain administrator's country address (the Country parameter). The option's argument must be a valid two-letter code as described in ISO-3166). |
To change the domain administrator's Country to New Zeeland on domain example.com: # ./domadmin -u example.com -country NZ |
|
|
Sets the default interface language for client's control panel (the Domain administrator's language parameter). The option's argument must be a valid four-letter language code derived from the language code described in ISO-639-2 and the corresponding country code described in ISO-3166. For example, the Plesk code for the Italian language code is |
To set the default interface language to Russian for the domain administrator on domain example.com: # ./domadmin -u example.com -locale ru-RU |
|
|
Sets the Allow multiple sessions parameter for the domain administrator's control panel. |
To allow multiple control panel sessions to run simultaneously on the domain administrator account: # ./domadmin -u example.com -multiple-sessions true |
|
|
Sets the Button label length parameter for the domain administrator's control panel. |
To change the button label length for the domain administrator's control panel to 15: # ./domadmin -u example.com -max-button-length 15 |
|
|
Sets the Domain administrator's interface skin for the domain administrator's control panel. |
To change the domain administrator's control panel interface skin to "WinXP Reloaded": # ./domadmin -u example.com -skin "WinXP Reloaded" |
|
|
Sets the Prevent working with Plesk until page is completely loaded parameter for the domain administrator's control panel. |
To prevent users from working with the control panel until control panel screens are completely loaded: # ./domadmin -u example.com -lock-screen true |
|
|
Sets the Desktop preset for the domain administrator's control panel. |
To change the domain administrator's Desktop to the "Default Domain Owner Desktop" preset: on domain example.com # ./domadmin -u example.com -desktop-preset "Default Domain Owner Desktop" |
|
|
Sets the Physical hosting management parameter for the domain administrator's account. |
To allow physical hosting management on domain example.com by the domain administrator: # ./domadmin -u example.com -manage_phosting true |
|
|
Sets the Manage FTP password parameter for the domain administrator's account. |
To allow changing the FTP user password by the administrator of domain example.com: # ./domadmin -u example.com -manage_ftp_password true |
|
|
Sets the Management of shell access to server parameter (the Client cannot allow or disallow shell access option) for the domain administrator's account (using the ftp user credentials). |
To disable shell access to domain example.com by the domain administrator using the ftp user credentials: # ./domadmin -u example.com -manage_sh_access false |
|
|
Enables or disables management of server shell access to the chrooted environment by a domain administrator (the Management of shell access to server parameter, the Domain administrator can allow access only to a chrooted environment and Domain administrator can allow access to any type of shell options). |
To enable access to shells of any type on domain example.com by the domain administrator using the ftp user credentials: # ./domadmin -u example.com -manage_not_chroot_shell true -manage_sh_access true |
|
|
Sets the Hard disk quota assignment parameter for the domain administrator's account. |
To allow changing hard disk quota on domain example.com by the domain administrator: # ./domadmin -u example.com -manage_quota true |
|
|
Sets the Subdomains management parameter for the domain administrator's account. |
To allow managing subdomains on domain example.com by the domain administrator: # ./domadmin -u example.com -manage_subdomains true |
|
|
Sets the Domain Aliases management parameter for the domain administrator's account. |
To allow managing domain aliases on domain example.com by the domain administrator: # ./domadmin -u example.com -manage_domain_aliases true |
|
|
Sets the Log rotation management parameter for the domain administrator's account. |
To allow managing log rotation on domain example.com by the domain administrator: # ./domadmin -u example.com -manage_log true |
|
|
Sets the Anonymous FTP management parameter for the domain administrator's account. |
To allow managing anonymous FTP access on domain example.com by the domain administrator: # ./domadmin -u example.com -manage_anonftp true |
|
|
Sets the Scheduler management parameter for the domain administrator's account. |
To allow managing scheduler by the domain administrator: # ./domadmin -u example.com -manage_crontab true |
|
|
Sets the DNS zone management parameter for the domain administrator's account. |
To allow managing DNS on domain example.com by the domain administrator: # ./domadmin -u example.com -manage_crontab -manage_dns true |
|
|
Sets the Tomcat applications management parameter for the domain administrator's account. |
To allow managing Tomcat web applications on domain example.com by the domain administrator: # ./domadmin -u example.com -manage_webapps true |
|
|
Sets the Mailing lists management parameter for the domain administrator's account. |
To allow managing mailing lists on domain example.com by the domain administrator: # ./domadmin -u example.com -manage_maillists true |
|
|
Enables or disables backing up data and restoring data from backups using the the control panel repository by a domain administrator (the Allow backing up and restoring data and use / control panel's repository parameter). |
To enable the administrator of domain example.com to backup and restore data using the control panel's repository: # ./domadmin -u example.com -allow_local_backups true |
|
|
Enables or disables backing up data and restoring data from backups using the the FTP repository by a client (the Allow backing up and restoring data and use / FTP repository repository parameter). |
To enable the administrator of domain example.com to backup and restore data using the FTP repository: # ./domadmin -u example.com -allow_ftp_backups true |
|
|
Sets the Antivirus management parameter for the domain administrator's account. |
To allow managing antivirus applications on domain example.com by the domain administrator: # ./domadmin -u example.com -manage_virusfilter true |
|
|
Sets the Desktop management parameter. Can be set to |
To allow managing Desktop by the administrator of domain example.com: # ./domadmin -u example.com -manage_dashboard true |
|
|
Enables or disables the use of the Desktop interface by a domain administrator. Sets the User interface parameter (the Desktop and standard interface are allowed and Only Desktop interface is allowed options only). Can be set to |
|
|
|
Enables or disables the use of the standard interface by a domain administrator. Sets the User interface parameter (the Desktop and standard interface are allowed and Only standard interface is allowed options only). Can be set to |
|
|
|
Enables or disables spam filter management by a client (the Spam filter management parameter). |
To enable spam filter management the administrator of domain example.com: # ./domadmin -u example.com -manage_spamfilter true |
Note: Use of this option is not recommended. Passing passwords through CLI as parameters of the -passwd option may potentially compromise the system's security as command line can be observed by other users of the system. It is more secure to pass passwords through the environment variables. You can transfer non-encrypted passwords by using environment variable PSA_PASSWORD while using single quotes to specify the empty values in the command line for the argument of the -passwd - -passwd_type options.
Similarly, you can transfer encrypted passwords through the environment variable PSA_CRYPTED_PASSWORD while using single quotes to specify the empty values in the command line for the argument of the -passwd and -passwd_type options.