[ClearCase] How to change UNIX UID and GID for all objects within one VOB?

发布于 2022-07-31 01:43:45 字数 1938 浏览 7 评论 0

Subject:

How to change UNIX UID and GID for all objects within one VOB?

Senario:

User wants to change UNIX group from GRP01 to GRP02 for all ClearCase objects in one VOB.

It often happens in design team organization changes.

Solution:

Most CM admin may want to use cleartool project to change UNIX Group, but it is not recommended by IBM Rational ClearCase.

Actually, IBM provided special tools vob_sidwork and vob_siddump to implement UNIX UID and GID changes during VOB data migration from one organization to another one.

Following is a example from my common works recently.  I use the tool vob_sidwalk changed UNIX group from GRP01 to GRP02.

This is a simple example for your referrence. For detail usage, please check the manual of vob_sidwalk.

# the first command is used to change all objects which owner is unknow to default vob administrator.
/opt/rational/clearcase/sun5/etc/utils/vob_sidwalk -unknown -execute /vobs/testvob  /tmp/vob_sidwalk_unknown_testvob

# the file /tmp/groups.txt is used to map old GID 233 to new GID 232
# cat /tmp/groups.txt
domain/GRP01,GROUP,UNIX:GID-233,domain/GRP02,GROUP,UNIX:GID-232
#

# the 3rd command is used to change GID on all objects within the vob /vobs/testvob according the map file /tmp/groups.txt
/opt/rational/clearcase/sun5/etc/utils/vob_sidwalk -map /tmp/groups.txt -execute /vobs/testvob /tmp/vob_sidwalk_map_testvob

# the 4th command is used to change VOB container's GID
/usr/atria/bin/cleartool protectvob -chgrp GRP02 /vobs/testvob

[ 本帖最后由 wangcf 于 2008-2-15 16:19 编辑 ]

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文