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: Mark D. Baushke
Subject: Re: problem in configuring cvs_acls on Centos 4.0(second time post)
Date: Sat, 23 Sep 2006 10:56:57 -0700

-----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

        Good luck,
        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (FreeBSD)

iD8DBQFFFXVpCg7APGsDnFERAi6eAJ9i4ct+OUe+59CI41mUCnQulIksewCgjmnQ
O08Iw0rD1kG6EIpaJtS7M30=
=DbWo
-----END PGP SIGNATURE-----




reply via email to

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