[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

2646.0. "Move Drawer to New User." by WAYOUT::CLARKE () Fri Apr 30 1993 22:16

I cannot find any information on how a shared drawer can be completely moved to 
a new users directory/ownership. This must be a common query, and multiple
refiling for large drawers appears primitive. I would like to work out a set of
instructions to achieve this possibly for inclusion in the Stars database.
This is what I have (stolen!) so far, I would appreciate comments on 
omissions/validity.

Thanks Aston, UK CSC

How to move a drawer between users.

-   make sure that no-one is accessing this drawer before continuing -
    can't think of a good way of doing this yet!
    What about reserved documents?

-   from an ALL-IN-1 managers accounts, use the REM (remove drawer from
    partition) option from the Manage Drawers menu

-   at DCL, rename the directory file within the user's [.OA] directory to
    the new user's [.OA] directory

-   SET FILE/OWNER=newuser on all files in this 'top' directory

-   change the ACL on ACCESS.DAT so that the new owner is the first entry,
    and is HIDDEN (don't know exactly what this means, but it seems to
    work) and the old owner is NOT HIDDEN

-   back in ALL-IN-1, add the drawer back into the partition (using ADD in
    the Manage Partition menu)

-   Find out who has pointers in their filecab.dat ?

-   for each user who has a pointer to this drawer in their file cabinet,
    use the RDR (remove drawer) and then ADR (add drawer) from the Drawer
    Management menu in the user's account (either send them a message so
    that they can do it themselves, or use the NEWDIR function to do it for
    them)
    
 
T.RTitleUserPersonal
Name
DateLines
2646.1IOSG::MAURICENight rolls in, my dark companionSat May 01 1993 01:117
    Hi,
    
    Have a look at OA$LIB:FC_MOVE_DRAWER_TO_ACCOUNT.SCP
    
    Cheers
    
    Stuart
2646.2What's the catch?WAYOUT::CLARKEWed May 05 1993 20:0326
I have tried the script on a couple of shared drawers and it seems to work well.
A couple of notes from my experiments for anyone intending using it;

1. Assign symbols before doing script as it doesn't prompt for these.
	<get #fc_unique_name = drawer name e.g "[clarke]public drawer"
	<get #fc_a1_name = ALL-IN-1 username of receiving account e.g "SMIFF"
	<do FC_MOVE_DRAWER_TO_ACCOUNT

2. The new drawer is added to the target users file cabinet (filecab.dat) with
the full drawer name used above minus the [username]. Check before moving that
a drawer with this name is not already referenced else it will have to be added
manualy using FC DRM ADR. 

3. The original owning account and any other sharers (local or remote) will have
to update their pointer to this drawer by removing/re-adding it (FC DRM RDR & 
ADR)

4. The share type and sharers list of the drawer remains, however the old owner
does not necessarily have access the moved drawer automaticaly.

So now for my question, What is the catch with using it ? I assume that it has no
respect for users connected to the drawer which is being moved. 

hidden script = undocumented = unsupported

Thanks Aston
2646.3No catch IOSG::MAURICENight rolls in, my dark companionWed May 05 1993 21:1719
    Hi,
    
    This script is used by the System Management delete user scripts
    (specifically script SM_DELETE_DRAWER_HANDLING.SCP).
    
> So now for my question, What is the catch with using it ? I assume that it 
> has no respect for users connected to the drawer which is being moved. 

    I don't think there is a catch. It checks for anyone being in the
    drawer at the same time. It fails with #fc_status set to 3 in this case
    (see comments at end of script).
    
    There are quite a few scripts delivered with ALL-IN-1 that customers
    use for their applications. The only documentation for these is in the
    scripts themselves. 
    
    Cheers
    
    Stuart
2646.4moving drawers contd.WAYOUT::CLARKETue May 18 1993 18:5413
Thanks for the info on this script Stuart, it is very well commented which 
helps.

I have created a Stars article detailing how a drawer can be moved. 

I am surprised that a menu option was not put on the Managers MD menu to allow
copying a drawer between users. After all you've already done 98% of the work
required for this! I believe that copying a drawer between users will be a 
common customer requirement, hopefuly my Stars effort will help.

Regards

Aston