此命令不起作用:
cleartool protect -chmod 770 <vob-tag-name>
我收到以下错误:
cleartool> protect -chmod 770 vob-tag-name
cleartool: Error: Unable to access "vob-tag-name": ClearCase object not found.
VOB 标签有效并指向正确的 VOB 位置。
我究竟做错了什么?
在上面的命令中,您应该使用类似的路径protect -chmod 770 /vobs/vobname/dir/file.txt
要保护 VOB,您应该使用protectvob 命令。
运行ct setview <view-name>
然后 cd 到 VOBcd <vob-tag>
然后运行/usr/atria/bin/cleartool protect -chmod 770 -recurse <vob-tag>
保护 VOB 对象(元素(文件/目录/..)、元类型(分支/...))的更改权限/所有权。
eg: For a file --> **ct protect –chmod 770 main.pl** ,
for all elements in the directories --> **ct protect –recurse –chmod 770 src**