[Cvsnt] Creating new passwords

Bo Berglund bosse at agiusa.com
Sat Apr 27 07:15:18 BST 2002

Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.

CVS and CVSNT are designed to allow access to the repository only to users
defined in the passwd file. But the users must also be valid system users,
they are not allowed. So if you have system users (accounts) on NT called
for example:
nancy, robert, chuck, john
and you add CVS users to the passwd file using cvs passwd command as:
nick, eric and john
then only john will be able to log in because he is a valid system user too.
All the other users are not allowed including the system users nancy,
robert, chuck.

By adding an alias to the passwd file this can be solved. The alias is
simply a
mapping of the CVS login to a valid user account. In the passwd file you
will see
the users as follows:
john:<hashed password>
nick:<hashed password>:chuck
eric:<hashed password>:nancy

Now nick can log in to CVS and will be acting after login using account
chuck etc.

When you add users with the cvs passwd command you can specify the alias at
the same
time, I don't think you can do this afterwards. Example:

C:\>cvs passwd -r bosse -a pieter
Adding user pieter at castor
New password: *********
Verify password: *********

The passwd file now looks like this:
and pieter can log on to CVS and will act as bosse on the system.

cvs passwd syntax:
Usage: cvs passwd [-a] [-x] [-X] [-r real_user] [-R] [-D domain] [username]
        -a      Add user
        -x      Disable user
        -X      Delete user
        -r      Alias username to real system user
        -R      Remove alias to real system user
        -D      Use domain password

Changing CVSROOT
If you are positioned in a directory where you have checked out files from
CVS using
the login eric as an example, then you cannot change the user and login
again because
CVS uses the cached information in the CVS subdirectory of all checked out
CVS first looks in the current directory for a subdir CVS and if it is found
it uses
the information in the file CVS/Root to log in.
This is done in order that you don't have to remember from where all of your
out modules came from originally. After you have done a modification and
want to commit
it you simply issue the commit command and CVS will know which server and
to contact by looking in the cached information. All of this is done
for you also in WinCvs.
So the CVSROOT setting is really for new checkouts into new sandboxes.


-----Original Message-----
From: Kent Yang [mailto:yang at nosc.mil]
Sent: den 27 april 2002 02:52
To: bo.berglund at telia.com
Subject: Re: [Cvsnt] Creating new passwords


Thanks for the solution.  I tried it and it allow me to set the password
for the new user except I got an error message that said I must alias
the "newuser" to a system user before "newuser" can log in.  What does
that mean?  Do I need to setup the alias in the passwd file.  What is
the format?

On another note.  I tried to test the new login for the newuser in
WinCVS so I change the CVSROOT setting in the preferences dialog in
WinCVS to be the new user.
:pserver:newuser at server:c:/cvs

When I attempt to login it always revert back to the old user.  Is this
a WinCVS bug?

Thanks in advance.


"Bo Berglund" <bo.berglund at telia.com> wrote in message
news:<3cc9db1e.1221446250 at news.cvsnt.org>...
> You must be logged on as a member of the administrators group on the
> CVSNT server or else your account must be mentioned in the
> CVSROOT/admin file. (the name may be admins, I don't quite remember.
> But there was a thread about this topic here a few weks ago so you
> should find it in the archives.)
> /Bo
> On Fri, 26 Apr 2002 22:29:19 +0000 (UTC), "Kent Yang"
> <kentyang22 at hotmail.com> wrote:
> >Howdy folks,
> >
> >I setup CVS NT on a Windows 2000 machine.  I am using pserver and
> >passwd authentication using the passwd in CVSROOT directory.
> >Everything appears to be working fine except how do I create
> >additional users.  I seem to be able to create and add a passwd using

> >"cvs passwd" for myself but I can not add any other
> >users.  I edited the passwd file and add other users.  The "cvs
> >command
> >doesn't seem to allow me to create passwd for anyone else.  So as a
> >around =)
> >I change my passwd and then copy the encrypted passwd to the other
> >This
> >doesn't seem to work however.
> >
> >Any help would be greatly appreciated.
> >
> >Thanks in advance.
> >
> >Kent Yang
> >kentyang22 at hotmail.com
> >
> >
> >_______________________________________________
> >Cvsnt mailing list
> >Cvsnt at cvsnt.org http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs
> /Bo
> (Bo Berglund, developer in Sweden)
> _______________________________________________
> Cvsnt mailing list
> Cvsnt at cvsnt.org
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs

Cvsnt mailing list
Cvsnt at cvsnt.org
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs

More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook