Web Users: webuser Utility

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

--create or -c

<login name>

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

--update or -u

<login name>

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

--remove or -r

<login name>

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

--info or -i

<login name>

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

--help or -h

 

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

-domain

<domain name>

Specifies name of the domain to which the web user account belongs.

Required for all commands, except --help.

To create a web user with login name Michael and password userpass on domain example.com:

# ./webuser -c Michael -domain example.com -passwd userpass

-passwd

<password>

Sets the web user password. Is required when creating the web user account with the --create command.

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

-passwd_type

plain| encrypted

Specifies the type of web user password - plain or cryptic. Is set to plain by default.

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

-quota

<number>[K|M|G]

Sets the Hard disk quota parameter for a web user. Type 0 to set the parameter to Unlimited.

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

-ssi

true|false

Enables or disables SSI support on a web user account.

Set to false by default.

To enable SSI support for the web user with login name Michael on domain example.com:

# ./webuser -u Michael -domain example.com -ssi true

-php

true|false

Enables or disables PHP support on a web user account.

Set to false by default.

To enable PHP support for the web user with login name Michael on domain example.com:

# ./webuser -u Michael -domain example.com -php true

-cgi

true|false

Enables or disables CGI support on a web user account.

Set to false by default.

To enable CGI support for the web user with login name Michael on domain example.com:

# ./webuser -u Michael -domain example.com -cgi true

-perl

true|false

Enables or disables Perl support on a web user account. Set to false by default.

To enable Perl support for the web user with login name Michael on domain example.com:

# ./webuser -u Michael -domain example.com -perl true

-asp

true|false

Enables or disables Apache ASP support on a web user account.

Set to false by default.

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

-python

true|false

Enables or disables Python support on a web user account.

Set to false by default.

To enable Python support for the web user with login name Michael on domain example.com:

# ./webuser -u Michael -domain example.com -python true

-miva

true|false

Enables or disables Miva support on a web user account.

Set to false by default.

 

-fastcgi

true|false

Enables or disables FastCGI support on a web user account.

Set to false by default.

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.