The webuser utility is used to manage web users through CLI. By using this utility, you can perform the following tasks:
Syntax
webuser <command> [<login name>] [
<option_1> [<param>]
[<option_2> [<param>]]
…[<option_N> [<param>]]
]
Example
The following command line creates the web user account with login name Michael on domain example.com and password userpass, enables the PHP support for the web user, and sets the disk space limit for the web user to 100 Mbytes.
# ./webuser --create Michael -domain example.com -passwd userpass -php true -quota 100M
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Creates a web user account. |
To create a web user with login name Michael and password userpass on domain example.com: # ./webuser --create Michael -domain example.com -passwd userpass or # ./webuser -c Michael -domain example.com -passwd userpass |
|
|
Updates an existing web user account with data specified by the options. |
To enable PHP support for the web user with login name Michael on domain example.com: # ./webuser --update Michael -domain example.com -php true or # ./webuser -u Michael -domain example.com -php true |
|
|
Deletes a web user account. |
To delete the web user with login name Michael from domain example.com: # ./webuser --remove Michael -domain example.com or # ./webuser -r Michael -domain example.com |
|
|
Displays information about a web user account. |
To display information about the web user with login name Michael on domain example.com: # ./webuser --info Michael -domain example.com or # ./webuser -i Michael -domain example.com |
|
|
Displays help on the use of the utility. |
To view the help info on the use of this utility: # ./webuser –help or # ./webuser -h |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Specifies name of the domain to which the web user account belongs. Required for all commands, except -- |
To create a web user with login name Michael and password userpass on domain example.com: # ./webuser -c Michael -domain example.com -passwd userpass |
|
|
Sets the web user password. Is required when creating the web user account with the -- See additional comments in the Note below the table. |
To change the password for the web user with login name Michael to userpass on domain example.com: # ./webuser -u Michael -domain example.com -passwd somepass |
|
|
Specifies the type of web user password - plain or cryptic. Is set to See additional comments in the Note below the table. |
To set the type of web user password to cryptic for the web user with login name Michael on domain example.com: ./domain -u example.com -passwd_type encrypted |
|
|
Sets the Hard disk quota parameter for a web user. Type A number without a letter is interpreted as the number of bytes. |
To set 50 MB hard disk quota for the web user with login name Michael on domain example.com: # ./webuser -u Michael -domain example.com -quota 50M or # ./webuser -u Michael -domain example.com -quota 50000K |
|
|
Enables or disables SSI support on a web user account. Set to |
To enable SSI support for the web user with login name Michael on domain example.com: # ./webuser -u Michael -domain example.com -ssi true |
|
|
Enables or disables PHP support on a web user account. Set to |
To enable PHP support for the web user with login name Michael on domain example.com: # ./webuser -u Michael -domain example.com -php true |
|
|
Enables or disables CGI support on a web user account. Set to |
To enable CGI support for the web user with login name Michael on domain example.com: # ./webuser -u Michael -domain example.com -cgi true |
|
|
Enables or disables Perl support on a web user account. Set to |
To enable Perl support for the web user with login name Michael on domain example.com: # ./webuser -u Michael -domain example.com -perl true |
|
|
Enables or disables Apache ASP support on a web user account. Set to |
To enable Apache ASP support for the web user with login name Michael on domain example.com: # ./webuser -u Michael -domain example.com -asp true |
|
|
Enables or disables Python support on a web user account. Set to |
To enable Python support for the web user with login name Michael on domain example.com: # ./webuser -u Michael -domain example.com -python true |
|
|
Enables or disables Miva support on a web user account. Set to |
|
|
|
Enables or disables FastCGI support on a web user account. Set to |
To enable FastCGI support for the web user with login name Michael on domain example.com: # ./webuser -u Michael -domain example.com -fastcgi 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.