1

Who can lock/unlock/obsolete streams (or any other object) in a clearcase project? Do you have to be a privilaged user to perform these operations on streams that you didn't create?

2 Answers 2

2

The cleartool lock man page does mention:

ClearCase privileged user is a designation referring to a user account that is a member of the clearcase group, which is granted ClearCase administrator rights when working in Full ClearCase.
Members of the clearcase group are granted special ClearCase rights.

Regarding Stream, a lock -obsolete Stream:xxx might be your only way to "remove" a Stream (especially if baselines were already created on it): see "Removing a UCM stream that has a delivered baseline".

Here are some examples for locking multiple instances of a same type of object.

To be sure a lock has actually worked, use the -fmt "%n %[locked]p\n" format when listing Streams:

cleartool lsstream -obsolete -fmt "%n %[locked]p\n" -invob vob

The OP Raihan adds in the comments:

According to the ClearCase documentation it it recommended to lock a stream before creating a baseline to prevent users from delivering during the process.
Isn't it overkill for a 'Project Manager' or 'Integrator' to have the root privilege who is managing a single UCM project (not necessarily created by him)?

Two things:

  • one, that means locking a stream with the -nuser option, in order to allow the integrator to perform operations (like making a baseline) on that stream.
  • two, if the integrator is not the owner an in... "integration" stream, then he/she asks the ClearCase administrator to give him/her the ownership of said Stream.
cleartool protect -chown integratorLogin stream:aStream@\aPVob
3
  • According to the clearcase documentation it is recommended to lock a stream before creating a baseline to prevent users from delivering during the process. Isn't it overkill for a 'Project Manager' or 'Integrator' to have the root privilage who is managing a single UCM project (not necessarily created by him)?
    – Raihan
    Dec 11, 2011 at 13:44
  • Thank you. So that means there can't be more than one integrator managing the same UCM project.
    – Raihan
    Dec 11, 2011 at 13:56
  • @Raihan: correct, especially when it comes to locking a Stream. For other operations, you have some extended policies like www-304.ibm.com/support/docview.wss?uid=swg21147119 (POLICY_CHSTREAM_UNRESTRICTED), but it isn't for locking operations.
    – VonC
    Dec 11, 2011 at 13:59
0

Far as I remember, you have to be one of the following:

  • Stream owner/creator
  • VOB owner
  • Member of ClearCase group
  • root (in UNIX \ Linux)

You may get further details by cleartool man lock

1
  • What is ClearCase group? Is it a OS user group?
    – Raihan
    Dec 11, 2011 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.