Install CVS-Linux Enterprise Application-Linux server application under redhat. For more information, see. 1. Install the CVS server:
1. Check whether CVS is installed on your operating system:
#> Rpm-qa | grep cvs
If you have not installed the package, you can find it on the Redhat 2nd discs and download the latest rpm package from the Internet. It is easy to find out, but there is actually no linux version.
2. Create a cvs user group:
#> Groupadd cvs
3. Create the cvsroot user and directory of the cvs group:
Cvspserver 2401/tcp # pserver cvs service
Cvspserver 2401/udp # pserver cvs service
11. Start the cvs service:
#>/Etc/init. d/xinetd restart
12. Check whether the cvspserver service has been started:
#> Netstat-l | grep cvspserver
The following results should be returned:
Tcp 0 0 *: cvspserver *: * LISTEN
II. User Management of the CVS service:
We have already created two CVS repositories, project1 and project2. Next we will create cvs users for the two repositories respectively.
13. Create a user name and password that can log on to the cvs server:
#> Su cvsroot
#> Vi/cvsroot/project1/CVSROOT/passwd
Trotter: *****: cvsroot
Mimi: *****: cvsroot
#> Vi/cvsroot/project2/CVSROOT/passwd
Trotter: *****: cvsroot
Gary: *****: cvsroot
These two files mean three cvs users: trotter, mimi, and gary. mimi has project1 permission, gary has project2 permission, and trotter has project1 and project2 permission. After login, the permission is cvsroot.
Note: The cvs users and system users here are different.
14. * ***** Is the password generated by the following files:
#> Vi/cvsroot/passwd. pl
#! /Usr/bin/perl
Srand (time ());
My $ randletter = "(int (rand (26) + (int (rand (1) +. 5) % 2? 65: 97 ))";
My $ salt = sprintf ("% c", eval $ randletter, eval $ randletter );
My $ plaintext = shift;
My $ crypttext = crypt ($ plaintext, $ salt );
Print "$ {crypttext}
";
#> Chmod a + x/cvsroot/passwd. pl
15. If you want to generate a password of "123456", then:
#>/Cvsroot/passwd. pl "123456"
Press enter to obtain the encryption password, and use it to replace ***** in the passwd file *****
16. OK, cvs has been fully installed. If you want a user to have project1 permissions, add a user to/cvsroot/project1/CVSROOT/passwd; if you want a user to have permissions for both project1 and project2, you can add a user with the same user name and password to/cvsroot/project1/CVSROOT/passwd and/cvsroot/project2/CVSROOT/passwd. Finally, let's try it out:
After you press enter, the system prompts you to enter the trotter password. You can enter the password according to your own password. If no error message is displayed, the password is successful (my machine IP address is 192.168.1.200)
* ** In addition, thanks to all the authors of the articles I have referenced ***
1. Install the CVS server:
1. Check whether CVS is installed on your operating system:
#> Rpm-qa | grep cvs
If you have not installed the package, you can find it on the Redhat 2nd discs and download the latest rpm package from the Internet. It is easy to find out, but there is actually no linux version.
2. Create a cvs user group:
#> Groupadd cvs
3. Create the cvsroot user and directory of the cvs group:
Cvspserver 2401/tcp # pserver cvs service
Cvspserver 2401/udp # pserver cvs service
11. Start the cvs service:
#>/Etc/init. d/xinetd restart
12. Check whether the cvspserver service has been started:
#> Netstat-l | grep cvspserver
The following results should be returned:
Tcp 0 0 *: cvspserver *: * LISTEN
II. User Management of the CVS service:
We have already created two CVS repositories, project1 and project2. Next we will create cvs users for the two repositories respectively.
13. Create a user name and password that can log on to the cvs server:
#> Su cvsroot
#> Vi/cvsroot/project1/CVSROOT/passwd
Trotter: *****: cvsroot
Mimi: *****: cvsroot
#> Vi/cvsroot/project2/CVSROOT/passwd
Trotter: *****: cvsroot
Gary: *****: cvsroot
These two files mean three cvs users: trotter, mimi, and gary. mimi has project1 permission, gary has project2 permission, and trotter has project1 and project2 permission. After login, the permission is cvsroot.
Note: The cvs users and system users here are different.
14. * ***** Is the password generated by the following files:
#> Vi/cvsroot/passwd. pl
#! /Usr/bin/perl
Srand (time ());
My $ randletter = "(int (rand (26) + (int (rand (1) +. 5) % 2? 65: 97 ))";
My $ salt = sprintf ("% c", eval $ randletter, eval $ randletter );
My $ plaintext = shift;
My $ crypttext = crypt ($ plaintext, $ salt );
Print "$ {crypttext}
";
#> Chmod a + x/cvsroot/passwd. pl
15. If you want to generate a password of "123456", then:
#>/Cvsroot/passwd. pl "123456"
Press enter to obtain the encryption password, and use it to replace ***** in the passwd file *****
16. OK, cvs has been fully installed. If you want a user to have project1 permissions, add a user to/cvsroot/project1/CVSROOT/passwd; if you want a user to have permissions for both project1 and project2, you can add a user with the same user name and password to/cvsroot/project1/CVSROOT/passwd and/cvsroot/project2/CVSROOT/passwd. Finally, let's try it out:
After you press enter, the system prompts you to enter the trotter password. You can enter the password according to your own password. If no error message is displayed, the password is successful (my machine IP address is 192.168.1.200)
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service