|
The Virtual Server administrator
is responsible for the following:
- Adding users
- Removing users
- Modifying user profiles
The following commands
deal directly with users and their profiles. Each command
is explained in detail in this chapter:
- vadduser - Adds
and modifies users.
- vlistuser - Lists
all users on your Virtual Server.
- vrmuser - Removes
a specified user.
- vpasswd - Changes
user's password.
Adding a User with vadduser
- From a Telnet prompt,
type vadduser. This action displays a series
of fields to fill in after beginning with the following
command example:
% vadduser
Please supply answers
to the series of questions below. When a `default
answer' is available, it will follow the question
in square brackets. For example, the question:
What is your
favorite color? [blue]:
has the default answer
`blue'. Accept the default (without any extra typing!)
by pressing the Enter key -- or type your answer
and then press <Enter>.
Use the <Backspace>
key to erase and aid correction of any mistyped
answers -- before you press <Enter>. Generally,
once you press <Enter> you move onto the next
question.
Once you've proceeded
through all the questions, you will be given the
option of modifying your choices before any files
are updated.
Press <Enter>
to continue:
- Type the username.
- Type the E-mail/FTP
Password.
- Retype new password.
- Type the User's Full
Name followed by a return. Use 8 characters or fewer,
no "." characters, and no ':' characters.
- Select the account
services that the new users will require. The default
selections are FTP and e-mail. Type the service name
(FTP or e-mail) to toggle the selected/deselected
services for the account.
- FTP (File Transfer
Protocol) for uploading/downloading files
- E-mail services
including 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 (enter "0" for no quota).
- Enter a numerical
response for the question "Where would you like
to put the user's home directory?" You are given
four options for where to put the user's home directory,
or you can put it in any location you choose. The
table below lists and describes each location briefly.
|
Description |
Example |
|
Email account home
directory |
/usr/home/username |
|
Web hosted account
directory |
/usr/local/etc/httpd/htdocs/username |
|
Virtual hosted
account directory |
/usr/local/etc/httpd/htdocs/vhosts/username |
|
Anonymous FTP home
directory |
/ftp/pub/username |
|
Your choice |
/usr/local/etc/httpd/htdocs/vhosts/some_directory/username |
- Enter "1"
for an E-mail account home directory.
- Enter "2"
for a web-hosted account home directory.
- Enter "3"
for a virtual hosted account.
- Enter "4"
for an anonymous FTP home directory.
- Or enter in any custom
path.
Note: Running
the vadduser script is straightforward with one
exception: the account services (FTP and e-mail). These
services are added to each user's account by default.
If you want the user to have both FTP and e-mail privileges,
press <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
privileges by entering "ftp." If you need
to add a service not currently in the list enclosed
by the square brackets ([]), then type the service (e-mail
or FTP) and press the Enter key.
For example, if Mary
Smith has the account name "mary" and the
domain name associated with your Virtual Server is "yourcompany.com,"
then Mary's e-mail address would be "mary@yourcompany.com".
Note: The FTP
quota governs the space that may be consumed by the
entire directory tree of a user's home directory. The
FTP quota is only effective when using FTP to upload
files. The mail quota governs the space that may be
consumed by a user's mail file under ~/usr/mail.
Each quota is expressed as a decimal integer number
of megabytes (MB) of disk space.
Modifying an Existing
User with vadduser
- 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.
Listing Users
vlistuser - Lists
the users you have added to the Virtual Server. It lists
the name, userid, home directory, and E-mail/ftp quotas.Removing Users
vrmuser - Removes
a user from your Virtual Server. To run vrmuser,
type the command at a Telnet prompt.
Changing a User's Password
vpasswd - Changes
a users password. To run vpasswd type vpasswd
username at a Telnet prompt.
|