Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to control and operate the account of CVS under Linux system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to control and operate the CVS account under the Linux system". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to control and operate the CVS account under the Linux system.

CVS is a version control system for maintenance of source code in a multiplayer development environment. In theory

CVS can maintain the development of arbitrary text documents, not limited to programming.

CVS uses the copy-midify-merge change table to support simultaneous access and modification of files.

In the UNIX environment, CVS is generally used on the command line, and there are also some front-end tools for GUI, such as TKCVS.

There are two ways to use CVS, one is local use, the other is remote execution. Here we talk about the use of this machine.

The command format for CVS is:

Cvs [options for cvs] cvs-command [command options]

Such as:

The code is as follows:

Cvs commit

Cvs-d / usr/local/cvsroot init

Cvs update

Cvs-H command (lists how to use the command command)

You don't need special permissions to run CVS, but you need to set everyone to read and write when there are multiple people. (see later)

Note: use CVS to manage source code, for code acquisition, update, should be done through the CVS command.

The following describes the use of CVS account management commands:

First, add an account:

1. Log in as root

two。 Running

The code is as follows:

Htpasswd $CVS_HOME/CVSROOT/passwd username

Prompt for the CVS password of the account

The code is as follows:

New password:

Re-type new password:

Updating password for user username

If the above prompt appears, it will be added successfully.

3. Editing

The code is as follows:

Vi $CVS_HOME/CVSROOT/passwd

The contents are as follows

The code is as follows:

Username:wiAgqUKhC59xo

Shjiang:pBZcGq5X5zK1U:cvsroot

Please manually add this user to the cvsroot group at this time (your own CVS account group, my CVS account group is cvsroot)

The code is as follows:

Username:wiAgqUKhC59xo:cvsroot

Shjiang:pBZcGq5X5zK1U:cvsroot

Just save it.

After saving, try to log in:

The code is as follows:

# cvs-d: pserver:username@ip: library path login

Logging in to: pserver:username@ip: library path

CVS password:

[root@NTS liuhai] #

Enter the command and press enter to prompt for the password. If there is no error message, it will be a success.

Delete the account

1. Log in as root user

2. Edit the passwd file above and delete the corresponding line.

At this point, I believe you have a deeper understanding of "how to control and operate the CVS account under the Linux system". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report