info-cvs
[Top][All Lists]
Advanced

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

Re: Using password file for pserver user authentication


From: Larry Jones
Subject: Re: Using password file for pserver user authentication
Date: Fri, 15 Feb 2002 15:48:01 -0500 (EST)

Schlitz writes:
> 
> I am using several administrative files (taginfo, commitinfo et. al.) to
> kick off scripts to perform various kinds of validation.
> In this example, $USER always expands to "cvsuser" in these scripts.  Is
> there any way to determine the login name- for example, I want to determine
> that the current user is "user1" so that I can differentiate between my
> non-system-account cvs users.

The CVS internal variable $USER contains the CVS login name (as opposed
to the $USER environment variable that, as you know, contains the system
user name).  You need to pass that as an explicit argument to your
script.  See the loginfo example in the manual, for example:

        <http://www.cvshome.org/docs/manual/cvs_18.html#SEC170>

Recent versions of CVS also set the $CVS_USER environment variable.  For
further details, see:

        <http://www.cvshome.org/docs/manual/cvs_18.html#SEC176>

-Larry Jones

Kicking dust is the only part of this game we really like. -- Calvin



reply via email to

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