Home
TeamSite
Changing branch ownership
System
Is there a command, or does someone have a script, that allows you to change the ownership of a branch without creating a new branch?
David M. Doggette
Certified Interwoven Consultant
Find more posts tagged with
Comments
Migrateduser
If you're on UNIX, simply chown the branch at the directory level. Assuming of course you have root or sudo priviledge. I'm sure there's a similar approach on Windows.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
tvaughan
You can chown the actual branch, but I think the WORKAREA, EDITION and STAGING areas are stuck forever with the ownership of the originally owned branch.
You've got to re-create the branch (and lose the meta-data) if you want to change the ownership of those directories.
Tom
Migrateduser
Good point - I tried that and it wouldn't let me change the owner of those directories.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
Migrateduser
You don't need to delete the branch to change WA ownership:
1. Make a new WA with correct ownership.
2. Copy content from original WA.
3. Delete original WA.
4. Change name of new WA to match old WA.
Script the above if needed for multiple WA's.
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden
Migrateduser
I don't think Tom was referring to workarea ownership, but rather the actual ownership of the WORKAREA, STAGING, and EDITION directories when you attempt to change the branch owner. Although the branch directory owner can be changed, these special directories cannot. Although your point is also valid - you can easily change the owner of a workarea as well.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
Migrateduser
Ah, I see--OTOH, I'm not sure why you'd want to change the placeholder ownership, as these are read-only dirs that can only be manipuated by TS functions anyway.
For instance: note that on windows the members of "TeamSite Web Preview" have "FULL" access to the placeholder dirs, but try (temporarily) putting yourself in the web preview group. Now you have full access (= ownership on Windows,) but you still can't directly manipulate these dirs or their contents.
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden
Migrateduser
So I'm confused....
Does that mean on Solaris, I can or cannot change the ownership of a branch simply by performing a chown on the branch directory?
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
james1
Yes, on Solaris, you can change the ownership or a BRANCH or a WORKAREA simply by performing a chown (or a chgrp) on the branch or workarea directory.
Underneath each branch are 3 special directories, almost always named "EDITION", "STAGING", and "WORKAREA". There is no way, currently, to change the ownership of those 3 special directories.
Hope this clears things up.
-- James
--
James H Koh
Interwoven Engineering
Migrateduser
...and to follow up, it is the branch owner (or members of the branch's group for sharing) that has admin priv on that branch (ie, make/delete WA's and sub-branches). The ownership of the placeholders EDITION, STAGING and WORKAREAS has nowt to do w' it, can be left in TS' hands and ignored.
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden
Migrateduser
Dear all
How do I change branch ownship in NT platform?
marco
Edited by MarcoLin on 10/16/02 02:45 AM (server time).
Migrateduser
you can use the iwchgrp command on windows to replace the unix chgrp command. this lets you change the group for sharing of a branch. since members of the branch share group can admin it just as well as the branch owner can, this may suffice for you.
On TeamSite 5.5.2, you can use the iwidmap CLT to swap ACEs in the backing store. I think this applies to branch owners too--this is ideal if you're trying to swap out an ex-user for an existing one. Better yet (best practice?), don't assign branch ownership to "people" user accounts. Use an anonymous "ts_admin" user account for ownership, and always set a group for sharing for a branch, even if it's only "administrators."
If you're not on TS 5.5.x, you could:
1. Make a new empty branch with the correct owner/group
2. Copy into it the edition(s) you need from the old branch
3. Copy over the needed WAs
4. Rename the old branch to something else
5. Rename the new branch to the old branch's name
6. Remove read access from the old branch
7. Eventually, in a batch job overnight on a weekend, delete the old branch
bw
Bob Walden [bob.walden@interwoven.com]
Interwoven Education Group
IM: Yahoo, MSN bob_walden