[cvsnt] restricting tags privileges
Lehman, Curtis
CLehman at carrieraccess.com
Tue Jun 6 16:31:49 BST 2006
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-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
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
More information about the cvsnt
mailing list