user201599
user201599

Reputation:

cleartool protect -chmod 770 <vob-tag-name> ERROR

This command does not work:

cleartool protect -chmod 770 <vob-tag-name>

I get the following error:

cleartool> protect -chmod 770 vob-tag-name

cleartool: Error: Unable to access "vob-tag-name": ClearCase object not found.

The VOB tag is valid and points to the correct VOB location.

What am I doing wrong?

Upvotes: 0

Views: 6545

Answers (3)

user3867163
user3867163

Reputation: 101

run ct setview <view-name> then cd to the VOB cd <vob-tag> Then run /usr/atria/bin/cleartool protect -chmod 770 -recurse <vob-tag>

Upvotes: 0

maestromani
maestromani

Reputation: 861

Protect changes permissions/ownership of a VOB objects (element(file/directory/..), meta type (branch/...),).

 eg: For a file --> **ct protect –chmod 770 main.pl** , 
     for all elements in the directories --> **ct protect –recurse –chmod 770 src**

Upvotes: 0

viren
viren

Reputation: 11

In above command, you should be using path like protect -chmod 770 /vobs/vobname/dir/file.txt

To protect the VOB you should use the protectvob command.

Upvotes: 1

Related Questions