[Top][All Lists]

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

Re: CVS and SSH - $LOGNAME environment variable

From: Paul Edwards
Subject: Re: CVS and SSH - $LOGNAME environment variable
Date: Thu, 14 Aug 2003 09:16:03 GMT

"Steven Queen" <Steven.Z.Queen@nasa.gov> wrote in message 
> The technique I used is described in detail in the O'Reilly book,
> "SSH The Secure Shell: The Definitive Guide" by Barrett and Silverman,
> on p. 309, section The method establishes a single public CVS
> login account with a restricted login shell that can only run CVS. The
> only method of login into this account is via SSH, and it uses the
> ability of OpenSSH to set a users environment variables (e.g. $LOGNAME)
> based on the specific public key the use to gain access to the account.
> The reason for setting the LOGNAME of the user is so that CVS submittals
> are attributed to the correct developer, not solely with the public
> access account. This scheme is straight out of the SSH text mentioned -- 
> only it didn't work with CVS 1.1.14, when I tried it.
> The solution was a modification of the source code file subr.c. I have
> attached the (not very elegant) patch I applied to that file.
> If this is something that should be incorporated into CVS, perhaps as a
> build option, please let me know and I can provide more details.

Even if it doesn't get in, someone may like to apply their patch
anyway.  So it would be useful if you could make it into an
elegant patch, that explains what it actually does (summarizing
the article you mentioned above).  I don't understand the
purpose of the "if", and why you write to stderr.  Also, what
version of the code does it patch, there's no such thing as 1.1.14.
Also, can you make it a context diff (cvs diff -c) against the
cvs 1.11.6 version of the code.

BFN.  Paul.

reply via email to

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