|

|
 | Virtual Server Documentation |
Home | Getting Started | FreeBSD | Solaris | Handbook
Creating and Managing E-Mail and FTP User Accounts
The following commands deal directly with users and their profiles. Each
command is explained in detail later:
- vadduser: Adds and modifies users
- vlistuser: Lists all users on your Virtual Server
- vrmuser: Removes a specified user
- vpasswd: Changes password for a user
|
NOTE:
The Solaris Virtual Server password file (~/etc/passwd) format mirrors
the native O/S format. Additional services (such as FTP and e-mail)
and per-service quota controls are now found in the privileges file
(~/etc/vpriv.conf).
Each account in the password file has a corresponding entry in the
privileges file listing enabled services and per-service quotas.
To find out which O/S your Virtual Server is running, use the
uname command:
% uname
|
Adding Users
Use "vadduser" to add users and modify existing users' profiles.
- From a Telnet prompt, enter "vadduser". This action displays a series
of fields to fill in after beginning with the following command example:
% vadduser
- Enter the username
- Enter E-mail/FTP Password.
- Retype new password:
- Enter User's Full Name followed by a return. Use less than 80 characters and no ':'
characters.
- Select the account services that the new user will require. The default
selections are ftp and email. Type the
service name (ftp or mail) to toggle the selected/deselected services for the account.
- FTP (File Transfer Protocol) for uploading/downloading files
- E-Mail service via POP, IMAP, and SMTP
|
NOTE:
If the user account will be accessed via IMAP then FTP service must
be enabled.
|
- Enter a positive or negative response to the question "Do you want to add service options
like quotas to
this account?"
- Enter FTP quota for this account in MB (0 for no quota).
- Enter a numerical response for the question "Where would you like to put the user's home
directory?"
- Enter "1" for an E-mail account home directory: /usr/home/[username]
- Enter "2" for a web-hosted account home directory: /usr/local/etc/httpd/htdocs/[username]
- Enter "3" for a virtual hosted account (Required by FrontPage 2000): /usr/local/etc/httpd/vhosts/[username]
- Enter "4" for an anonymous FTP home directory: /ftp/pub/[username]
- Or enter in any custom path.
|
NOTE: Running the vadduser script is straightforward with one
exception: the account services (FTP and Mail). These services are
added to each users account by default. If you want the user to have
both FTP and E-mail privileges, just hit enter when asked to accept
the defaults. For the user to have FTP privileges only; deselect the
mail privileges by entering "mail". For the user to have E-mail
privileges only; deselect the ftp prvileges by entering "ftp". If you
need to add a service not currently in the list enclosed by the
square brackets ([]), then type the service (mail or ftp) and hit the
enter key.
|
Modifying Existing Users
- Run vadduser again.
- Specify the username.
- Vadduser detects the user by name, then asks you if you want to modify the user account.
Proceed
through the Vadduser fields by answering the questions.
Other Commands
| vlistuser |
Lists the users you have added to the Virtual Server.
It lists the name, userid, home directory and E-
mail/FTP quotas. |
| vrmuser |
Removes a user from your Virtual Server. To run
vrmuser, enter the command at a Telnet prompt. |
|
vpasswd |
Changes a users password. To run vpasswd type
vpasswd username at a Telnet prompt.
|
|