More than a year ago, a CVS was configured for the project. Cvsnt The independent authentication mode. A friend of mine tried to create one a few days ago. I forgot how to do it. It was really a loss if I didn't write it down.
It took some time to finally match it with a friend. However, some problems occurred in my machine because I changed the Group Policy. In any case, I reported an error: error reading from server 192.168.0.168: 0 is really depressing. Anyway, let's talk about the process. After all, my friend came out, and I had a good experience more than a year ago, the server is still in use, and the security problem of my own machine is too complicated.
First, install the cvsnt. I use 2.0.51d, and the next step is complete. In the advanced option, select items 1/2/4, create a repository, and then enable the service.
The client uses wincvs1.3. Set pserver to log on with an Administrator group, and check out cvsroot.
Create a user and use commandsCVS passwd-a-r system user CVS user, suchCVS passwd-a-r guest cvsadmin and enter the password twice. Next, let's turn this user into an administrator and create a file Admin. Note that there is no extension. Then, add a line of cvsadmin, press enter, and then add and commit. The file will be sent to the server, at this time, the admin file has not yet taken effect. Modify it again.In the checkoutlist file, add a line [] admin [] sdasd. Note that [] indicates a space. Enter the following line as needed and submit it to the server.
Now that you have an administrator, you are not allowed to modify cvsroot. We need to modify the access permission and change the owner. Select cvsroot and run chacl default: n to prohibit access by others. Then, run chacl cvsadmin: RWC to grant the cvsadmin read/write and creation permissions.
Next, disable the use of system users to log on to CVS, open the config file, and # Change systemauth = yes to systemauth = No and submit. In this way, only cvsnt users are logged in. All user lists are in the passwd file in the cvsroot folder of the server. This file cannot be checked, so onlyCVS passwd-a-r system user CVS user "to add users. Submit the changes to the server. Finally, run chown cvsadmin when selecting cvsroot and change the owner to cvsadmin.
OK, then return to the server, select only 4/5 items for the advanced option of cvsnt, and restart cvsnt.
Now, go back to the client, and the system administrator account you started cannot enter. Delete the detected cvsroot, log in with cvsadmin, and check a cvsroot again, no one can access cvsroot. Then, what do you like, add users as you want, and grant permissions as you want. You don't need to add a system account for every person you add, as in the old method, the system account corresponding to the person you add is only a reference, but it cannot be used.
This time I finally kept a record and it will be easy to configure it next time.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.