Installation and use of CVSNT under Windows

xiaoxiao2021-04-02  221

CVSNT installation and use of CVSNT under Windows, CVSNT's user authentication mode is divided into two types: Windows system users coexist with CVSNT users, and CVSNT users single authentication mode, the default work in mixing verification In the mode, of course, the user's management is definitely more convenient to use a single verification method, so the following configuration is performed around this manner. The verification methods and user configuration used by each resource library are determined by the configuration files in CVSROOT in their directory, with several important files.

1, config file

Controlling CVSNT's verification work is the config file, pay attention to the two lines of the front of the file:

#Set this to `no" if pserver shopn "t check system users / passwords # systemauth = yes

The second line is what we want to modify, the default status is commented, SystemAuth has two values ​​and NO:

YES: PServer will use Windows system users and CVSNT users to verify (if the CVSNT user is not defined, use Windows system users to verify), default is YES, the CVSNT user will define in the Passwd file that will be described later.

NO: Only use CVSNT users to verify.

This file can be modified at the client, so we can change its checkout to systemauth = no, and COMMIT to CVSNT can enable a single verification method, pay attention to enable the original Windows system user after the single verification method. It will become invalid, so pay attention to the timing of executing this step.

2, admin file

This file saves the CVSNT administrator user list, the content is simple, the form is as follows: User1User2User3 defines an administrator user, without this file when it is default, but you can add and add on the client yourself, then CVSNT, but If the light is still not effective, but also add it to the checklist file so that the CVSNT can read the contents of the file, and add the file list in the checklist to: [Space] file name error information where the file is Spaces must have, or it will be wrong. We can add admin files to CVSNT first, modify the checklist file commit, you can make the admin file take effect. 3. When the Passwd file server works in a single authentication mode of the CVSNT user, this file defines the user information of CVSNT, which saves the username, user password, and alias information. There is no file in the default state, but we can work with the system administrator when CVSNT is working in a hybrid verification mode, and use the user command to automatically create a passwd file by adding a user command. An example of the user's command: cvs passwd -r administrator -a cvsadmin After the system prompts the password, and the server will create a passwd file after entering the server. Contents of the file is simple form is as follows: cvsadmin: fqr1fS4gDghrt: administratorkid: aTXRfS31Bm6JAmystique: Yna4QcXz9dEqd first embodiment Behavior: cvsadmin user name, fqr1fS4gDghrt CVS to use standard UNIX password encryption function to encrypt the result, for the user Administrator Alias ​​that corresponds to the Windows system username when using a hybrid verification method. Note: This file cannot be modified on the client, can't checkout. 4, group file This file defines the group information in CVSNT, the same permissions in the same group, the modification of group privileges, and the modification of user privileges. The content of the Group file is administrators: cvsadmin kid mystiqueusers: user1 user2 user3 can see the content of this file is also very simple, Group Name: User name, multiple usernames are separated by spaces. Group files can be modified in the client, do not modify the checkoutList file, the system will automatically take effect. As a particular member inside the group, you can assign specific privileges. Understand the above, let me talk about my own configuration steps, I don't use WinCVS to operate, I use the command line to modify, I feel that this is relatively clear: 1. Add system variable cvsRoot = E: / CVSNT / Repository And add E: / CVSNT to the system Path path. 2, enter the command prompt, because at this time is mixed verification mode, you can do Checkout without login. A work directory can be created, doing it in this directory, I am e: / cvsNT / Works.

Check out the cvsroot directory: CVS CO CVSROOT3, add the CVSNT system administrator user, at which time you will be prompted: cvs passwd -r administrator -a cvsadmin4, modify cd cvsroot cvs chown cvsadmin // Change the owner to cvsadmin CVS chacl default: n // Default permission is n cvs chacl cvsadmin: rwc // Add cvsadmin5, modify the config file, and modify the above method, COMMIT: CVS CI 6, at this time, the single verification mode is already enabled, that is, only Sign in with the cvsadmin just added, at which you can turn it off on the CVSNT Control Panel. Before you log in, you have to change the system variable cvsroot, turn off the command prompt window, modify CVSROOT:: pserver: cvsadmin@192.168.0.1: 4021 / cvsNT / repository here's 192.168.0.1 is the server's IP address, / cvsNT / repository is The Name set when reository is set up in front, which can be changed to the configuration on your machine. The steps below after modifying the system variables are performed on any machine connected to the server, and of course there should be CVSNT executables on the machine. 7. If there is an error, restart the CVSNT server first, then start the command prompt to e: / cvsNT / Works, because a single authentication method is enabled, first log in first.

CVS login Enter a password, which is logged in with CVSADMIN. 8, add the admin file, first check the cvsroot, create a new admin piece under CVSROOT, the content is cvsadmin execute command: CVS Add Admin CVS CI 9, modify the checklist file, add a line at the end of the file:

[Space] Admin Error Message Note: The space before admin is not less. Execute the command: CVS CI After the above steps, it can be said that the user configuration has been basically completed, and CVSNT can work well in a single verification mode. Further management can use the following command:

Add users: cvs passwd -a username, you don't have to pay a prompt to add an alias when you use.

Modify User Rights: CVS Chakl UserName: R | W | C | N, (R: Read W: Write C: Control N: None)

To add a group management, simply use the Add Admin step, you can ask for a new Group file according to the format.

转载请注明原文地址:https://www.9cbs.com/read-131331.html

New Post(0)