Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Move users from one UIC to another?

10 views
Skip to first unread message

Michael Moroney

unread,
Feb 3, 2012, 3:51:39 PM2/3/12
to
Before I reinvent the wheel or try to do this manually, does anyone have
a DCL procedure to move users from one UIC to another, updating things
like file ownership, RIGHTSLIST etc. ?

I couldn't find anything with Google.

Ken Fairfield

unread,
Feb 3, 2012, 4:32:54 PM2/3/12
to
Did you try the Help for Authorize, UAF> help ???

You can

UAF> modify /uic=[xxx,yyy] <username>

and you can

UAF> modify /identfier /value:uic=[xxx,yyy] <username>

I believe that should take care of Authorize and Rightslist.

For the files, you'll need to locate them before you make
the change (or at least that's easiest). If they're all
in one, or a few, directory tree(s), just do a

$ set file/owner=<username> [...]*.*;*

after the change. You could also do a search after the
change with $ directory/own=[old-uic] [...]*.*;* to get
a list of files to re-owner. This may be useful in
cases where files in a directory are owned by a variety
of uic's.

-Ken



Michael T. Davis

unread,
Feb 7, 2012, 1:18:21 PM2/7/12
to

In article <12407300.985.1328304774207.JavaMail.geo-discussion-forums@prhq15>,
Be careful with that SET FILE... command. It will change
the modification date of the target file(s), which is often not a
desirable side-effect. You might be able to avoid this if you
take a BACKUP of the file/folder tree of the user's data, and then
overwrite the data with a BACKUP restoration with /BY_OWNER=<user>/OVERLAY
(after the UIC changes in AUTHORIZE) on the destination. (Exclusive
access to the user's files would be advisable for this.)

>
> -Ken
>
>
>

Regards,
Mike

Michael Moroney

unread,
Feb 7, 2012, 3:25:36 PM2/7/12
to
DAV...@ecr6.ohio-state.edu (Michael T. Davis) writes:


>In article <12407300.985.1328304774207.JavaMail.geo-discussion-forums@prhq15>,
>Ken Fairfield <ken.fa...@gmail.com> writes:

>>On Friday, February 3, 2012 12:51:39 PM UTC-8, Michael Moroney wrote:
>>> Before I reinvent the wheel or try to do this manually, does anyone have
>>> a DCL procedure to move users from one UIC to another, updating things
>>> like file ownership, RIGHTSLIST etc. ?
>>>
>>> I couldn't find anything with Google.
>>
>>Did you try the Help for Authorize, UAF> help ???

I know about that, I was just wondering if there was a .com file that was
already done that can move a bunch of users around. Similar to how
SYS$EXAMPLES:ADDUSER.COM makes a simpler interface to AUTHORIZE for
creating new users, their home directory etc. I guess it's simple enough
I can do things manually.

> Be careful with that SET FILE... command. It will change
>the modification date of the target file(s), which is often not a
>desirable side-effect. You might be able to avoid this if you
>take a BACKUP of the file/folder tree of the user's data, and then
>overwrite the data with a BACKUP restoration with /BY_OWNER=<user>/OVERLAY
>(after the UIC changes in AUTHORIZE) on the destination. (Exclusive
>access to the user's files would be advisable for this.)

I plan to do this just before a full BACKUP/IMAGE/RECORD so everything
doesn't appear on an incremental backup.
0 new messages