How to add a new user to Linux CVS
1. Use the htpasswd command to generate an MD5 encryption Password
[Cvsroot @ hwdevelop cvsroot] $ htpasswd
Usage:
Htpasswd [-javaspsd] passwordfile Username
Htpasswd-B [javaspsd] passwordfile Username Password
Htpasswd-N [MDPs] Username
Htpasswd-Nb [MDPs] Username Password
-C create a new file.
-N don't update file; display results on stdout.
-M force MD5 encryption of the password.
-D force crypt encryption of the password (default ).
-P do not encrypt the password (plaintext ).
-S force Sha encryption of the password.
-B use the password from the command line rather than prompting for it.
-D Delete the specified user.
On Windows, Netware and TPF systems the '-m' flag is used by default.
On all other systems, the '-p' flag will probably not work.
Here you can directly ~] $ Htpasswd-Nb User Password
Obtain the encrypted string User: rupjuouba4hya
Or obtain the encrypted string through the file method ~] $ Htpasswd
-CB passtmp User Password
Passtmp is a temporary file generated. Store the encrypted password in more
View the encrypted password
More passtmp
User: rupjuouba4hya
2. Edit the passwd file in the cvsroot subdirectory under the cvsroot installation directory and add the encrypted string to the last line of passwd.