Home

 

Creating CVS users

To create CVS users to access the files in the repository, do these steps:

Open a Windows command prompt.

Set the cvsroot environment variable with the following command:

set cvsroot=:pserver:cvsadmin@KCWC17C.itsosj.sanjose.ibm.com:/rep7672

Where KCWC17C.itsosj.sanjose.ibm.com is the host.name of the CVS server and /rep7672 is the directory the repository is located on the host machine.

Note: The full host.name must be specified; localhost does not work. To find the host name of a machine, right-click the My Computer icon on the Windows desktop, select Properties, and select the Computer Name tab. The full computer name is shown on this page.

Log on to the CVS repository machine to manage the users, using the following command:

cvs login cvsadmin

You are prompted to enter the CVS password.

Enter the password for the cvsadmin user created in Creating the Windows users and groups used by CVS.

Enter the following CVS commands to add users:

cvs passwd -a -r cvsadmin <cvs-user-id>

cvs passwd -a is the command to add a new user and password, or change a password if that user already exists.
-r cvsadmin indicates the alias or native user name that the user will run under when connecting to the repository (we set this to be cvsadmin for the user created in Creating the Windows users and groups used by CVS).
<cvs-user-id> is the user ID to be added.

For example, to add user cvsuser1, enter the following command:

cvs passwd -a -r cvsadmin cvsuser1

Note: The first occurrence of a user being added creates the file passwd in the directory, c:\rep7672\CVSROOT. The new user is appended to this file. We recommend that this file not be edited directly by a text editor. It also must not be placed under CVS control.

A prompt opens to enter the password:

Adding user cvsuser1@KCWC17C.itsosj.sanjose.ibm.com

New password: ********

Verify password: ********

Note that the user ID and password created are completely specific to the CVS repository and are unrelated to the windows user ID and password.

Repeat the previous step for an additional CVS user: cvsuser2. We need two users for the example.

Provide the development team members their CVS account information, host.name, and connection type to the CVS server, so that they can establish a connection from RAD v7.5. For example:

Account info: Developer CVS user ID (for example, cvsuser1)
CVS server host.name: (for example, KCWC17C.itsosj.sanjose.ibm.com)
Connection type: pserver
Password: <password>
Repository path: /rep7672

Any subsequent changes to the users or passwords must be done by the administrator using the same commands.

ibm.com/redbooks