[ClearCase] How to change UNIX UID and GID for all objects within one VOB?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论