Every time a thread that involves 'BULDACCT' comes up, I feel compelled to
'advertize' a utility that I wrote back in the '80s (we had 3 HP3000s back
then) to move account structures around. Over the years I've kept
enhancing it and now it handles Volume Sets, HFS directories, etc.. I used
to take pride in the fact that it did all that without using PM, but I had
to eventually use PM in order to resolve a problem with 'local attributes'
(they are not reported correctly by the 'listuser' command).
One of the recent mods involved the generation of a stream file that will
set UDC files for all the active users. One could use that stream file to
'clean-up' the contents of the 'command.pub.sys' file. (Run the utility
with needed parm to create JSETUDCS, Delete all the records in
'command.pub.sys', Stream the above job and it will 'populate' to
'command.pub.sys' file).
Below is the 'help text' from the utility. I can make said utility
available to anyone that is interested.
Regards
Paul Christidis
===========
PHC --- Account duplication: V 2004.04.02 FRI, APR 2, 2004, 2:12 PM
ACCTDUP creates a job stream with the needed MPE commands to
recreate the structure of MPE accounts/'Account Sets' from
a host to another. (Private volumes work ONLY in MPE/iX).
Only users with 'SM' capability can specify 'Account sets',
while users with 'AM' capability are restricted to generate
the structure for their specific MPE account.
The utility is executed as follows:
RUN ACCTDUP[;parm=n][;info='val1;val2;val3;...']
Parm <> 0 AND 'SM' capability invokes the 'CLEANUP' option.
(It is retained for backward compatibility reasons).
The different 'info' string values are:
AUTO - Eliminates some prompts and assigns the following
default values for:
Assign Jobname of [GENACCTS]
Replace old version [Y]
Submit stream file [N].
CLEANUP - Directs the utility to create two additional jobs.
'JGENALL' to stream the generated jobs for ALL selected
accounts and 'JCLEANUP' to 'cleanup' the mess.
CMUDCSTYLE - Directs the utility to create the UDC related
commands in the MPE/V format (without using the 'append'
parameter of the 'setcatalog' command). This provides
a method for generating a 'compact' list of all the UDC
files 'set' in a specific account
HELP - Prints this information AND terminates.
HPSECURITY - Works only on MPE/V machines. It announces
the presence of the Security Monitor software and alters
the [new/alt]user command to include 'USERPASS=REQ' if
set. 'SETJCW HPSECURITY=1' has the same effect.
NODEFAULTS- Directs the utility NOT to include the FILES,
CPU, and CONNECT parameters if set to default values.
NODIRS - Directs the utility NOT to include any 'posix'
directories that may be defined below each selected
MPE account.
ROOTDIR - Directs the utility to create an additional job
jobstream (Named 'ROOTDIRJ') containing all the needed
commands to re-create ALL the 'posix' directories that
are defined below the 'root' directory. It can only
be specified by a user with 'SM' capability.
UDCJOB - Directs the utility to create an additional file
'JSETUDCS' containing jobs for each account with set
UDC files. Can be used to set the UDCs after the files
are restored. Have used it to 'fix/clean' a corrupted
'command.pub.sys' file.
UDCJOBONLY - Directs the utility to ONLY create the JSETUDCS
file for the purpose of 'fixing' 'command.pub.sys'
DS=HostName - Used to identify a 'remote' machine from which
the MPE accounts will be extracted. The user MUST know
the MANAGER.SYS passwords for the remote machine.
GETHVS - Include any private volume information currently
associated with the account, so that they can be used
to rebuild it in the destination machine.
SYSFILES=nn - For accounts that do NOT have any 'objects' on
the '$SYS' set, reserve 'nn' sectors to allow building
posix directories (MPE/iX requirement). Default = 0
VS=NewVolSet- The needed commands for creating/updating the
specified account on the indicated 'NewVolSet' will be
included in the stream file.
NOPM - Do NOT use 'Privileged Mode' routine to extract the
correct user 'local attributes', accept the values as
reported by the 'listuser' command.
:NOTE: The additional 'CV' & 'UV' capabilities required with
the 'GETHVS' & 'VS=' parameters will be 'included/added' in
the generated stream file.
If NONE of the account's groups reside in the '$SYS'
Volume Set AND 'sysfiles=nn' has NOT been specified then a
'files=0' parameter will be issued against the '$SYS'
volume set's entry for the account.
If no user with AM and BA capabilities is found, a user
of 'XZMGRZX' will be created to allow account re-creation.
Should be removed after ALL duplication tasks are done.
ALL stream files generated by this utility are saved
with their 'access matrix' set to 'Creator Only' for added
security.
The 'POSIX' directory related parameters will work
correctly as long as the 'absolute directory name' does
NOT exceed 254 characters in length.
STOP ** End of Help Text **
===========
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|