CVS command line collection-user management

Source: Internet
Author: User

Wincvs has been used all the time, but the command line is not very difficult and powerful.

CVS user management

In Solaris
You can download the CVS installation package on the http://www.sunfreeware.com (you can directly install cvsnt and
Cvstrac NT is easy to manage. User management can be performed on websites ). After the installation is complete, you need to perform basic service configuration.

Add the following to service/etc/services:

Cvspserver 2401/tcp

Cvspserver 2401/udp

Add/etc/inetd. conf

Cvspserver stream tcp Nowait root/usr/local/bin/CVS-f -- allow-root = cvs repository root. Add pserver to the backend

Then kill-HUP inet process number

Configure the cvsroot variable in the system environment variable/etc/profile to indicate the root.

Initialize the directory to be changed to the CVS repository, and create the system directory cvsroot that is tied to the data content. To facilitate management, you can create a group called CVs and ensure that the directory has permissions for this member.

Groupadd group name # Add group name

Groupdel group name # Delete group name

Useradd-G group name [-D user home directory] username # Add a member of this group

Usermod-G group name username # modify the user's main group name

Usermod-G group name username # append user's slave group name

Userdel username # delete a user

Chown-R group user: group name directory # modify directory owner, including subdirectories and files

Chmod-r u [+/-rwx] G [+/-rwx] O [+/-rwx] Directory # modify directory permissions, including subdirectories and files

Then, you can perform a local test in the window.

CVS-D: pserver: username @ address/CVS Repository directory Login

You will be prompted to enter the password. If the password cannot be verified, the configuration is incorrect.

If you need to configure access to a specific repository, you can create the file readers or writers in the system cvsroot. By default, these two files are not available. Readers indicates that the member is a reader and has no modification permission. Writers indicates that the user in the member can be modified. This allows for more flexible configuration.

In the config System Management file

# Systemauth = Yes

Indicates whether operating system verification is used. It is more convenient to deploy multiple warehouses on the same machine, but it is not conducive to porting the warehouses because users and groups need to be created after migration to other systems.

# Lockdir = system-locked directory

Transfers the directory to a directory that is not a repository and has writable permissions on the group in which CVS is located. This allows other users who do not have the write permission to read files.

When
The system only needs to create a passwd file when it adopts the verification of CVS. The/etc/passwd file of the system can be transferred and copied directly. When CVS cannot find this file
When the user is not there, it will automatically use the operating system user for verification. However, during migration, you only need to copy to other directories. The disadvantage is that it is cumbersome for users to change their passwords,
All passwords are encrypted. You need some processing and then modify the passwd file.

The advantage of CVS is that it can maintain the details of changes and manage concurrency control more effectively.
Loose. When a problem occurs in a project, you can roll back to a stable State and perform team development with multiple project members. However, the conflict must be resolved. Two people cannot modify the file at the same time. And the files before modification must be kept
It is the latest version of CVs, so that it cannot be modified due to conflicts.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.