1vice-setup(8)               System Manager's Manual              vice-setup(8)
2
3
4

NAME

6       vice-setup - setup a Coda server
7
8

SYNOPSIS

10       Vice-setup
11

DESCRIPTION

13       Vice-setup  is  the  user  front-end to a family of scripts designed to
14       setup a Coda server based on question-answer responses.  This avoids an
15       otherwise  tedious  and  error-prone-manual  method.  The most critical
16       question asked for the vice-setup family of scripts  to  work  properly
17       is:
18
19       Is this the master server, aka the SCM machine? (y/n)
20
21
22       Answering  ``yes''  to  this  question causes the following sequence of
23       scripts to be called from within vice-setup:
24
25       ·      vice-setup-scm
26
27       ·      vice-setup-user
28
29       ·      vice-setup-rvm
30
31       ·      vice-setup-srvdir
32
33       where as answering ``no'' causes only the following scripts to run from
34       vice-setup:
35
36       ·      vice-setup-rvm
37
38       ·      vice-setup-srvdir
39

OVERVIEW

41       Vice-setup
42              is  designed to be called directly by the administrator to setup
43              a server. It performs the following tasks common to both SCM and
44              non-SCM servers:
45
46
47              ·      Creates  the directories, /vice,/vice/{backup,db,srv,vol}
48                     and, /vice/vol/remote if they do not already exist.
49
50              ·      Creates and sets up the authentication files  needed  for
51                     interserver and interclient communication.
52
53              ·      Creates  and  sets up, /vice/db/files, which are a set of
54                     common Coda files distributed from the SCM  via,  update‐
55                     clnt, and updatesrv.
56
57              ·      Adds  Coda  port numbers to, /etc/services if not already
58                     present.
59
60              ·      Sets up the Coda server to start at system startup if  so
61                     indicated.
62
63              ·      Records the hostname in, /vice/hostname.
64
65
66       Vice-setup-scm
67              This  script is only run if ``yes'' is given as an answer to the
68              SCM question.
69
70
71              ·      Prompts for a Coda server ID in the range of  0-255,  and
72                     creates  the  file,  /vice/db/servers, with this informa‐
73                     tion.
74
75              ·      Creates, /vice/db/scm,  with  the  hostname  of  the  SCM
76                     machine being setup.
77
78              ·      Creates,  /vice/db/VSGDB,  with  the  root  volume number
79                     ``E0000100''.
80
81              ·      Prompts for the name of the root volume and  stores  this
82                     information in, /vice/db/ROOTVOLUME.
83
84
85       Vice-setup-user
86              This script is only run by, vice-setup, when the machine is des‐
87              ignated as the SCM.
88
89              ·      This sets up the System:Administrator group and Coda user
90                     ``admin'' then initializes, /vice/db/vice.pdb.
91
92              ·      Creates,  /vice/db/passwd.coda,  needed to setup the ini‐
93                     tial password system.
94
95              ·      Creates, /vice/db/auth.pw.
96
97       Vice-setup-rvm
98
99              ·      Prompts for the RVM_LOG device.
100
101              ·      Prompts for the size of the RVM_LOG device.
102
103              ·      Prompts for the RVM_DATA device.
104
105              ·      Prompts for the RVM_DATA size based  on  default  values.
106                     These  values must be typed exactly right to be accepted.
107                     For example, 22M must be typed exactly as, "22M".
108
109              ·      Initializes the RVM_LOG and RVM_DATA devices based on the
110                     values given for RVM initialization.
111
112              ·      Creates, /vice/srv.conf, with the values given for RVM.
113
114       Vice-setup-srvdir
115              This script sets up the data storage area for a Coda service.
116
117              ·      Prompts for the location a data storage area (default is,
118                     /vicepa).
119
120              ·      Creates the empty file, /vicepa/FTREEDB, which must exist
121                     in order for, makeftree, to function.
122
123              ·      Creates, /vice/db/vicetab.
124
125              ·      Initializes the data storage area with, makeftree.
126
127
128       For  a  detailed  explanation  of  each  question asked by the scripts,
129       please see the chapter, ``Installing a Coda Server'' in the  Coda  Man‐
130       ual.
131

BUGS

133       Many of the highlights are:
134
135       ·      Vice-setup-scm:  does  not  actually  create  the  ROOTVOLUME it
136              prompts for.  It only sets up the accounting  files  that  point
137              the  server(s)  to  the  root volume.  The actual volume must be
138              created after the server is started for  the  first  time  with,
139              createvol_rep.
140
141       ·      Vice-setup-rvm:  will  not  warn  you if run a second time after
142              setting up an otherwise working server.  This essentially causes
143              all data stored on the Coda server in question to be wiped out.
144
145       ·      Vice-setup-user: there is no flexibility in setting up an admin‐
146              istrative user called anything other than ``admin''.
147
148       ·      Vice-setup-user: there is a security hole in, initpw, that could
149              allow  unauthorized  Coda ``admin'' access and/or denial of ser‐
150              vice if an unauthorized user gains root access to the SCM.
151
152       ·      Vice-setup-user: a user ``admin'' with a uid of 500  must  exist
153              on  each  client that needs to have admin access to Coda.  There
154              is no practical way to test for this.  The hardcoding of uid 500
155              may cause additional trouble at some sites.
156
157       ·      Vice-setup-rvm:  will  add entries to, /vice/srv.conf, each time
158              it is run without removing the previous contents.  If more  than
159              one line of server information is present in, srv.conf, a ``mul‐
160              tiple instance error'' is returned  by,  srv,  because  multiple
161              lines  in, srv.conf, are treated as a single set of command line
162              arguments to srv.  Essentially, the resulting error is made suf‐
163              ficiently out of context and is difficult to detect.
164
165       ·      Vice-setup: does not determine the host IP address.
166
167       ·      Error  messages  returned  by the scripts or the programs called
168              from within the scripts  do  not  jump  out  and  bark  at  you.
169              Instead,  errors are easily missed while running the scripts and
170              these errors tend to come back and bite you later.
171
172       ·      If a non-SCM server is being setup, you still must respond  with
173              tokens  to,  vice-setup, when asked.  However, the response must
174              be identical to the SCM or the ticket files must be copied  from
175              the  SCM  manually  for  interserver  communication to work cor‐
176              rectly.
177
178       ·      auth2, updateclnt and updatesrv must be started  manually  on  a
179              non-SCM  to  suck down the real versions of these files from the
180              actual SCM.  This error in logic can be misleading.
181
182       ·      On non-SCM Servers, the following  files  on  the  SCM  must  be
183              edited or copied from the SCM manually before running: vice-set‐
184              up:
185
186              /vice/db/services
187
188              /vice/db/hosts
189
190              to complete the setup of a non-SCM server.
191
192

FILES

194       /vice/db/vicetab: the Vice Table Configuration file for srv.
195
196       /vice/vol/VolumeList: volumeList of the server.
197
198       /vice/db/scm:  the SCM hostname.
199
200       /vice/hostname: the host's hostname.
201
202       /vice/srv.conf: the srv configuration file.
203
204       /vice/db/services
205
206       /vice/db/ROOTVOLUME
207
208       /vice/db/VSGDB
209
210       /vice/db/vice.pfc
211
212       /vice/db/vice.pdb
213
214       And many more files are touched by these scripts than are listed here.
215

SEE ALSO

217       srv (8), rvmutl (8), rdsinit (8), auth2  (8),  authmom  (8),  updatemon
218       (8), updatesrv (8), updateclnt (8), startserver (8), srv.conf (8), cre‐
219       atevol_rep (8), pwd2pdb (8), initpw (8), makeftree (8), vicetab (5)
220
221       Coda Manual: ``Installing A Coda Server''
222
223       The RVM Manual
224

AUTHOR

226       Henry M. Pierce, 1998, created
227
228                                                                 vice-setup(8)
Impressum