AW: [cciug] Restrict CheckOut/CheckIn

From: Axel Mahler (Axel.Mahler@lmse.de)
Date: Fri Feb 18 2000 - 04:38:39 EST


Two choices:

 1) positive restriction (grant access explicitly to certain users, deny
access for all others): use "cleartool lock -nusers user1,user2,..
<element1> <element2> ..."

 2) negative restriction (deny access explcitly to certain users, grant
access to all others): use a pre-operation trigger on checkout: "cleartool
mktrtype -element -all -pre checkout -exec deny_co restric_checkout".
"deny_co" can be a script like (for example perl in a Unix environment):
 #!/usr/bin/perl
 @exclude_list = qw ( user1 user2 );
 $this_user = getpwuid ($<);
 if (scalar (grep (m/${this_user}/, @exclude_list))) {
        print STDERR "Write access to $ENV{CLEARCASE_PN} denied.\n";
        exit 1;
 }
 exit 0;

Cheers, Axel.

> -----Ursprüngliche Nachricht-----
> Von: owner-cciug@Rational.Com [mailto:owner-cciug@Rational.ComIm
> Auftrag von haresh/Polaris@polaris.co.in
> Gesendet am: Freitag, 18. Februar 2000 10:04
> An: cciug@Rational.Com
> Betreff: [cciug] Restrict CheckOut/CheckIn
>
>
>
>
> Hi !
>
> I'm on clearcase 3.2.1 for NT. How do i restrict checkout/checkin
> for a user.
>
> Haresh
>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>

>

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:23:19 EDT