info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem in configuring cvs_acls on Centos 4.0(second time post)


From: ankush grover
Subject: Re: problem in configuring cvs_acls on Centos 4.0(second time post)
Date: Mon, 25 Sep 2006 08:11:52 +0530

On 9/23/06, Mark D. Baushke <address@hidden> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi Ankush,

A quick change to your version of the cvs_acls.pl script would probably be
to change this line:

$myname = $ENV{"USER"} if !($myname = $ENV{"LOGNAME"});

To this

$myname = $ENV{"CVS_USER"} || $ENV{"USER"} || $ENV{"LOGNAME"} || getpwuid($<) || 
"uid#$<";

This will try to find a defined environment variable first, then try to
lookup the current uid in the passwd file and then just create a user
based on uid#nnnn where nnn is the uid as defined by $< ...

Failing that, you should probably consider picking up the latest version
of cvs_acls.pl as the version you have is not as flexible as the newer
revisions of this script.

Documentation and script are here:

http://cvs.savannah.nongnu.org/viewcvs/ccvs/contrib/cvs_acls.html?rev=HEAD&root=cvs
http://cvs.savannah.nongnu.org/viewcvs/ccvs/contrib/cvs_acls.pl?rev=HEAD&root=cvs

You should carefully read the documentation.

The key thing you need to understand about the new version of the script
is that the -u switch should be passed the CVS_USER rather than $USER,
so your commitinfo script will end up having something like this line:

DEFAULT /usr/local/bin/cvs_acls -u $CVS_USER

hey Mark,

Thanks for the guidance, I will definitely look into this . You have
always been very helpful.

Thanks & Regards

Ankush Grover




reply via email to

[Prev in Thread] Current Thread [Next in Thread]