On Thu, Jan 16, 2014 at 7:28 AM, Staller, Allan <[email protected]>wrote:

> ADDUSER USER2 model(USER1)
>

Nope. the MODEL() parameter takes a dsname as a parameter. From the HELP
ADDUSER command

<quote>
))MODEL(dsname)
   Specifies the name of a discrete data set profile that is used
   as a model when new data set profiles are created that have
   userid as the high-level qualifier. For this operand to be
   effective, the MODEL(USER) option (specified on the SETROPTS
   command) must be active.

   RACF always prefixes the data set name with userid when it
   accesses the model. For information about automatic profile
   modeling, refer to z/OS Security Server RACF Security
   Administrator's Guide.
</quote>

To answer the OP's question. There is not a command or process supplied by
IBM with the base RACF which will clone a user. What I do is run an
IRRDBU00 to unload the RACF DB. I then run IRRRID00 against this for the
clone-from user. This puts out RACF command to _delete_ the given user. I
use these command to make a "reverse" set of command to do the
corresponding command to add a new user. I rarely do this, or I would write
a REXX program to do it for me. Or, if I were in a nasty mood, perhaps a
z/OS UNIX base PERL program just to piss off the others in my group. They
hate z/OS UNIX because "it's not Windows". Oh, how I have that (and Windows
too).


>
> HTH,
>
> <snip>
> Any way to copy (clone) a RACF user profile under another user name ?
> So I would like to have a new user USER2 with the same attributes as the
> existing USER1.
> </snip>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>



-- 
Wasn't there something about a PASCAL programmer knowing the value of
everything and the Wirth of nothing?

Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to