[cvsnt] restricting tags privileges

Lehman, Curtis CLehman at carrieraccess.com
Tue Jun 6 16:31:49 BST 2006


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


We have created such limitation our CVS server by creating a pearl script
that enforces such requirements. The pearl script is called from the taginfo
file. My pearl script looks something like:

#!/usr/bin/perl

use strict;

my $i;
my ($user,$tag,$function) = @ARGV;

if ($function eq "del")
{
    if( ($user eq 'clehman') || ($user eq 'bruedy') || ($user eq
'AKulkarni'))
    {
        print "ok $user, you can delete tags\n";
        exit 0;
    }
    print "$user can't delete tags.\nContact Bill Ruedy to remove tag
$tag\n";
    exit 1;
}

if ($tag =~ /\AT_.*/)
{
    exit 0;
}
if ($tag =~ /\ABR_.*/)
{
    exit 0;
}

print "All Tag names must begin with a T_  and branches begin with BR_\n";
exit 1;

I have been meaning to add some code to force user names passed in to all
lower case. I have had some problems with case sensitivity and differences
between clients on Linux and windows systems. Hope this helps.

- Curt Lehman

-----Original Message-----
From: feymard at stago.fr [mailto:feymard at stago.fr] 
Sent: Tuesday, June 06, 2006 9:15 AM
To: cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook; cvsnt-bounces at cvsnt.org
Subject: [cvsnt] restricting tags privileges

hi,

Do you know if it is possible to limit acces some functions on tags like:
- all users can create a tag
- only administrators can move or delete a tag, and create a rtag ?
Chacl can answers to the second point, but, if I use this command, I will
loose the capability for all to create a tag...

Best regards,
--
Franck-Sébastien Eymard

_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook