CVS server configuration step [转]

xiaoxiao2021-03-06  79

Check / etc / services First Type VI / ETC / Services and type / cvspserver if there is no # in front of the found row, so you don't have to modify it, otherwise you go to the list # in the /etc/xinetd.d directory, create a file, Just name, such as cvs vi /etc/xinetd.d/cvs added therein

Quote: Service cvspserver {socket_type = stream wait = noser = root env = home = server = / usr / bin / cvs # The following configuration option is wrong, wrong with red marker # server-tags = - allowow-root = / Home / CVSROOT PSERVER Server_Args = - Allow-root = / home / cvsroot pserver} After saving, create a group called CVS and a user GroupAdd CVS UserAdd -g cvs -s / sbin / nologin cvsroot then Vi / etc / profile added export cvsroot = / home / cvsroot restart xinetd: /etc/init.d/xinetd Restart initialization CVS warehouse CVS -D / home / cvsRoot init like this CVS can be used if you do not modify the above error It will appear when CVS login appears: cvs [login aborted]: unrecognized auth response from localhost: usage: cvs [cvs-options] Command [command-options-arguments] This error prompt.

Use suggestions:

Add a warehouse: Enter your source code directory CD / Your / Sources / path then execute cvs export source_dir_name author version Source_Dir_name is your project saved in the cvsroot directory, Author is engineering author, Version is issued for your project Version number, you must add anonymous read-only users with letters: useradd -g cvs -m -s / sbin / nologin anonymous chmod 644 / home / cvsroot / cvsroot / passwd echo "anonymous :: anonymous" >> / home / cvsroot / CVSROOT / passwd chmod 444 / home / cvsroot / CVSROOT / passwd echo "anonymous" >> / home / cvsroot / CVSROOT / readers chmod 444 / home / cvsroot / readers prevent CVSROOT be downloaded: chmod 644 / home / cvsroot / CVSROOT / modules Echo "cvsroot -a" >> / home / cvsroot / cvsroot / modules chmod 444 / home / cvsroot / cvsroot / Modules do not use Real System User login: Chmod 644 $ cvsroot / cvsroot / config vi $ cvsroot / cvsroot / config will The two lines #systemauth = no remove the comment, that is, change to systemauth = no

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

New Post(0)