So, what you want to do is to have both users using the same CVS account, essentially? This is well-documented in both the Cederqvist and Open Source Development Using CVS. The Cederqvist is part of the CVS distribution. (doc/cvs.ps in the source tarball, IIRC...) Open Source Development is available from Corois (sp?) Press and is partially available under the GPL.
Essentially, you want to have a user (say cvsoperator) on the system that will be what john and smith access cVS as. Then, in $CVSROOT/CVSROOT/passwd, make 2 new entries along the lines of:
johnop:someCryptedString:cvsoperator
smithop:anotherCryptedString:cvsoperator
CVS will then use the login for cvsoperator to perform functions as those logins. cvsoperator can then be part of group operator, and john and smith can have their normal CVS accounts still, as long as they remember to use cvs login & co.
Hope this helps some...
--Matt
(sorry that I posted so far OT)
-----Original Message-----
From: Jakab Laszlo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 2:21 AM
To: Larry Clapp
Cc: SSH Mailing List
Subject: Re: ? change the default group id of SSH session
----- Original Message -----
From: "Larry Clapp" <[EMAIL PROTECTED]>
To: "SSH Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 11:21 PM
Subject: Re: ? change the default group id of SSH session
>
> On Tue, Feb 20, 2001 at 02:59:19PM -0000, Jakab Laszlo wrote:
> > I would like to make ssh (client) to show the user with
> > different group id (not the default).
> >
> > Let's say I have on the server :
> > user: _smith_
> > default group: _users_
> >
> > but smith and john are part of the group _operator_
> >
> > I'm wondering if is possible when smith is connecting to the
> > server with ssh to specify that now use the privileges of
> > _smith_ but from the group _operator_. So the group privileges
> > to be set up as _operator_. In this way all the work of _smith_
> > can be accessed also by _john_.
>
> Is there some reason you can't *ask* Smith and John to run
> "newgrp operator" when appropriate?
>
> If there is, well, many shells support the use of an
> /etc/profile, which gets run before any user .profile scripts, so
> you could put in code to see if the user's connected via ssh ("ps
> -el | grep $PPID | grep sshd") and do the newgrp yourself.
The problem is that _smith_ in normal SSH sessions should be part of the
primary group _users_, and just in the special session should use primary
group _operator_ and in this cases _smith_ get no shell really.
It's something very similar to CVS with SSH.
I can say to CVS to use SSH - but I got no shell.
( CVSROOT=:ext:_smith_@myserver:/mycvs; CVS_RSH=ssh; )
Also in this case I can't change the primary group of _smith_ from _users_
to _operator_.
Can anyone give me a solution? (If there is a solution without changing the
source code to CVS I think that solution sould work also in my case)
>
> Hope this helps. Have a nice day.
>
> -- Larry
Thanks a lot, for your time.
Jakab Laszlo
