|
0
|
1 |
=head1 NAME
|
|
|
2 |
|
|
|
3 |
vadduser - Add a user to a virtual domain
|
|
|
4 |
|
|
|
5 |
=head1 SYNOPSIS
|
|
|
6 |
|
|
|
7 |
B<vadduser>
|
|
|
8 |
[B<-c INT>]
|
|
|
9 |
[B<--msgcount=INT>]
|
|
|
10 |
[B<-D>]
|
|
|
11 |
[B<--no-mailbox>]
|
|
|
12 |
[B<-d STR>]
|
|
|
13 |
[B<--directory=STR>]
|
|
|
14 |
[B<-e INT>]
|
|
|
15 |
[B<--expiry=INT>]
|
|
|
16 |
[B<-f STR>]
|
|
|
17 |
[B<--forward=STR>]
|
|
2
|
18 |
[B<--password=STR>]
|
|
0
|
19 |
[B<-P>]
|
|
|
20 |
[B<--no-password>]
|
|
|
21 |
[B<-p STR>]
|
|
|
22 |
[B<--personal=STR>]
|
|
|
23 |
[B<-Q INT>]
|
|
|
24 |
[B<--hardquota=INT>]
|
|
|
25 |
[B<-q INT>]
|
|
|
26 |
[B<--softquota=INT>]
|
|
|
27 |
[B<--quiet>]
|
|
|
28 |
[B<-z INT>]
|
|
|
29 |
[B<--msgsize=INT>]
|
|
|
30 |
I<USERNAME [ALIAS1 ...]\n"
|
|
2
|
31 |
"or vaddalias USERNAME [ALIAS1 ...]>
|
|
0
|
32 |
|
|
|
33 |
=head1 DESCRIPTION
|
|
|
34 |
|
|
|
35 |
This program is used to set up a user within a virtual host.
|
|
|
36 |
If this program is reading from a tty,
|
|
|
37 |
it will then ask for a password (twice, to make sure you typed it in
|
|
|
38 |
correctly), otherwise it will read the password from the input with no
|
|
|
39 |
prompting.
|
|
|
40 |
It will then
|
|
|
41 |
add the user to the virtual password table in the current
|
|
|
42 |
directory and create a mail directory for the new user.
|
|
|
43 |
It will also add an entry for each of the named aliases.
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
=head1 OPTIONS
|
|
|
47 |
|
|
|
48 |
=over 8
|
|
|
49 |
|
|
|
50 |
=item B<-c INT>, B<--msgcount=INT>
|
|
|
51 |
|
|
|
52 |
Set the user's message count limit.
|
|
|
53 |
|
|
|
54 |
=item B<-D>, B<--no-mailbox>
|
|
|
55 |
|
|
|
56 |
Do not create a mailbox for this user. Defaults to true for vaddalias.
|
|
|
57 |
|
|
|
58 |
=item B<-d STR>, B<--directory=STR>
|
|
|
59 |
|
|
|
60 |
Set the path to the user's mailbox. Note that this directory is unconditionally prefixed with "./".
|
|
|
61 |
|
|
|
62 |
=item B<-e INT>, B<--expiry=INT>
|
|
|
63 |
|
|
|
64 |
Set the account's expiry time (in seconds).
|
|
|
65 |
|
|
|
66 |
=item B<-f STR>, B<--forward=STR>
|
|
|
67 |
|
|
|
68 |
Add a forwarding address to this user (this may be used multiple times).
|
|
|
69 |
|
|
2
|
70 |
=item B<--password=STR>
|
|
|
71 |
|
|
|
72 |
Encrypted password. Defaults to asking for a password.
|
|
|
73 |
|
|
0
|
74 |
=item B<-P>, B<--no-password>
|
|
|
75 |
|
|
|
76 |
Do not ask for a password, and instead set the pass phrase field to an unusable value.
|
|
|
77 |
|
|
|
78 |
=item B<-p STR>, B<--personal=STR>
|
|
|
79 |
|
|
|
80 |
Set the user's personal information.
|
|
|
81 |
|
|
|
82 |
=item B<-Q INT>, B<--hardquota=INT>
|
|
|
83 |
|
|
|
84 |
Set the user's hard quota (in bytes).
|
|
|
85 |
|
|
|
86 |
=item B<-q INT>, B<--softquota=INT>
|
|
|
87 |
|
|
|
88 |
Set the user's soft quota (in bytes).
|
|
|
89 |
|
|
|
90 |
=item B<--quiet>
|
|
|
91 |
|
|
|
92 |
Suppress all status messages.
|
|
|
93 |
|
|
|
94 |
=item B<-z INT>, B<--msgsize=INT>
|
|
|
95 |
|
|
|
96 |
Set the user's message size limit (in bytes).
|
|
|
97 |
|
|
|
98 |
=back
|
|
|
99 |
|
|
|
100 |
=head1 RETURN VALUE
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
0 if all steps were successful, non-zero otherwise.
|
|
|
104 |
If any of the steps fail, a diagnostic message is printed.
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
=head1 SEE ALSO
|
|
|
109 |
|
|
|
110 |
|
|
|
111 |
vsetup(1)
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
=head1 NOTES
|
|
|
116 |
|
|
|
117 |
You must have either created the users subdirectory by hand or run the
|
|
|
118 |
F<vsetup> program before using this program.
|
|
|
119 |
|
|
|
120 |
This program expects the environment variable C<HOME> to be set, and
|
|
|
121 |
executes a change directory to the contents of it before starting. It
|
|
|
122 |
is also required that you change user to the domain owner before using
|
|
|
123 |
these utilities.
|
|
|
124 |
|
|
|
125 |
|
|
|
126 |
|
|
|
127 |
=head1 AUTHORS
|
|
|
128 |
|
|
|
129 |
Bruce Guenter <bruceg@em.ca>
|
|
|
130 |
|