1

Is it possible to provide permission to rebase for a specific person only?

Currently i can see clearcase can only "any user allow rebase" option.

If possible please let me know how can I change the stream to allow permission to rebase for a specific person.

user2370590
  • 837
  • 1
  • 16
  • 31

1 Answers1

1

The easiest way is to cleartool lock -nusers aUser a stream, but that will limit any command (not just rebase) to that person.

cleartool lock -nusers aUser stream:astream@/vobs/apvob

The more precise option is to make a pre-op trigger on rebase (with cleartool mktrtype), which test the user and stream and allows or denied the rebase based on those two parameters.

cleartool mktrtype -ucmobject -all -preop rebase_start -execunix 'yourScript' -execwin 'ccperl yourScript.pl"' UCM_BLOCK_REBASE

See for instance this "Role-based preoperation trigger script" (a bit too complex for your case, but which can give some idea about a possible implementation of the preop trigger script).

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250