To add a user to a domain, use the AddVirtUser
script. This script adds a user to a domain, specifying the information Parallels Pro needs to add the user, as well as the server applications to which the user should be granted access.
You can specify the user's password in either of two ways.
/usr/local/bin/AddVirtUser [tpasswd=
<ctxtpwd>| cpasswd=
<crpwd>| passwd] \
<domain name> <username> <user's full name> <user's disk quota>\
<service>=
<value>
where:
tpasswd
option to include the user's password in the command in plain text.cpasswd
option to include the user's password in the command in encrypted text.Note: To use this option, you first need to employ encryption software to encrypt the password. Enter the encrypted text in this variable.
passwd
Use this option to enter the user's password on the standard input. The command will not exit until you enter and confirm the password.Note: Use any one of the above three options to enter the user's password depending on the security level desired while entering the password.
Note: The services currently available are Telnet, ProFTPd, and SSH.
AddVirtUser tpasswd=MTVrules example.com uname "John Doe" 20 \
telnet=1 ssh=1 proftpd=1
In this example, the script adds a user with the following specifications.