info-cvs
[Top][All Lists]
Advanced

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

Re: Need to force username of cvs 'action' when using shared SSH account


From: Paul Levin
Subject: Re: Need to force username of cvs 'action' when using shared SSH account
Date: Mon, 03 May 2004 22:09:34 GMT
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)

I had this same problem with OpenSSH.
For $30 I purchased WinSSHD from BitVise - www.bitvise.com .
It works great, each CVS transaction is correctly labeled with the user who did it, and Bit Vise has excellent email tech support.
        Paul


Tim Grotenhuis wrote:
I have cvs running on a shared box at my isp.  They don't allow
pserver to run and port 2401 is closed to the outside, and besides I
am much more comfortable with the security of SSH.

So I set up access using SSH.  I created a key pair, and put the
public key in the authorized_keys2 file.  I set up PuTTY to manage the
SSH session on my windows machine and WinCVS to access the repository
using SSH.  Everything worked fine.

Here is the issue:  I noticed that the name of the committer for each
file that I committed was unix account id, or the one that is used to
SSH into the cvs machine.  Now I have multiple developers(committers)
and ONLY ONE shared shell account on the machine where is CVS is
running.  I need to be able to force a unique name for each developer
that CVS will log.

Here is what I've tried so far:

A. In front of each developers public key, I placed:

  command="/home/mydomain/bin/setuserscript
theuser",no-port-forwarding,no-pty

where the setuserscript would export a variable ( I tried CVS_USER,
USER, and LOGNAME) and then run cvs server:

  export CVS_USER=$1
  cvs server

This is pretty cool, because it will execute this script when the
developer accesses the shared account through this public key. The
script definitely ran, but the committer name didn;t get changed.

There HAS to be a way to force cvs to record the correct committer
name.

Please keep in mind: I would like to be able to use WinCVS as the
client, but if I need to switch to another client, I will.

Thanks in advance.  I really think this is a tough one.

tim




reply via email to

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