CVS settling (server)

xiaoxiao2021-03-06  15

1. Establish a cvsroot directory, because here involves the permissions issues read and written on the file in CVSROOT, so a relatively simple method is to create a group, then build an account belonging to the group, and the user after reading and writing It is to belong to this group. Suppose we build a group of CVS, username cvsroot. The group and the user's command is as follows #Groupadd CVS #adduser CvsRoot Home Directory in / Home / CVSROOT (according to your own system) 2. Use cvsroot users to log in, modify / home / cvsroot (cvsroot) permissions, assignment The same person has read and writes: $ chmod 771. (Or 770 should also) Note: This part of the work is done according to documentation, there must be no test, I will do the test after the test is in the later version of the tutorial Speak carefully. If you have this experience, please give me, thank you. 3. Establish a CVS warehouse (still cvsroot users), with the following command: $ cvs -d / home / cvsRoot init4. To log in, modify /etc/inetd.conf and / etc / services, add the following line: Add: Cvsserver Stream TCP NOWAIT ROOT / USR / BIN / CVS CVS - Allow-root = / Home / CVSROOT PSERVER Description: The above line is a single line, / usr / bin / cvs Should be your CVS version of the command path, please adjust it according to your own system. / Home / CVSROOT is the path to the cvsroot you created, and also adjust it according to the contents of the part of the directory above. Add: CVSServer 2401 / TCP Description: Cvsserver is any name, but cannot be reinable with the existing service, but also to modify the first item of /etc/inetd.conf above. Here I use CVS password authentication method, CVS has other authentication methods, I have not tested, if you have experience, please add, thank you. 5. Add users who can use CVS services to CVS group: Modify / etc / group as root, add the username of CVS to the CVS group, such as what I want to let the user Laser and GumpW can use CVS services, then modify In the future, the / etc / group should have the following rows: CVS: X: 105: Laser, GID on your system may not be 105, there is no relationship. Mainly to separate the Laser and Gumpwu to the last colon with a comma. Of course, if the distribution of the RedHat has tools like LinuxConf, do this will be simpler.

6. Because Redhat Linux is different from the UNIX system, the way the service is started differently (with inetd.conf configuration files under UNIX, there is a named xinetd.conf under Linux, where I found that all the services included in Xinetd. D directory, open any of the files in this directory, you will understand)

Note in the UNIX system /etc/inetd.conf file Add to CVSPSERVER STREAM TCP NOWAIT ROOT / USR / LOCAL / CVS / CVS CVS -F - Allow-root = / opt / cvs PServer with Linux system / etc / xinetd. The Telnet file in the D directory generates a file (in the /etc/xinetd.d directory) #touch CVSPServer

Establishing a startup script cvspserver # vi /etc/xinetd.d/cvspserverservice cvspserver {disable = noflags = REUSEsocker_type = streamuser = rootserver = / usr / bin / cvsserver_args = -f --allow-root = / home / cvsroot pserverlog_on_success = USERIDlog_on_failure = Userid}

7. Start service #service xinetd restart

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

New Post(0)