@@ -99,7 +99,7 @@ looks like
99
99
100
100
------
101
101
102
- Only anonymous access is provided by pserve by default. To commit you
102
+ Only anonymous access is provided by pserver by default. To commit you
103
103
will have to create pserver accounts, simply add a gitcvs.authdb
104
104
setting in the config file of the repositories you want the cvsserver
105
105
to allow writes to, for example:
@@ -114,21 +114,20 @@ The format of these files is username followed by the encrypted password,
114
114
for example:
115
115
116
116
------
117
- myuser:$1Oyx5r9mdGZ2
118
- myuser:$1$BA)@$vbnMJMDym7tA32AamXrm./
117
+ myuser:sqkNi8zPf01HI
118
+ myuser:$1$9K7FzU28$VfF6EoPYCJEYcVQwATgOP/
119
+ myuser:$5$.NqmNH1vwfzGpV8B$znZIcumu1tNLATgV2l6e1/mY8RzhUDHMOaVOeL1cxV3
119
120
------
120
121
You can use the 'htpasswd' facility that comes with Apache to make these
121
- files, but Apache's MD5 crypt method differs from the one used by most C
122
- library's crypt() function, so don't use the -m option.
122
+ files, but only with the -d option (or -B if your system suports it).
123
123
124
- Alternatively you can produce the password with perl's crypt() operator:
125
- -----
126
- perl -e 'my ($user, $pass) = @ARGV; printf "%s:%s\n", $user, crypt($user, $pass)' $USER password
127
- -----
124
+ Preferably use the system specific utility that manages password hash
125
+ creation in your platform (e.g. mkpasswd in Linux, encrypt in OpenBSD or
126
+ pwhash in NetBSD) and paste it in the right location.
128
127
129
128
Then provide your password via the pserver method, for example:
130
129
------
131
- cvs -d:pserver:someuser:somepassword <at> server/path/repo.git co <HEAD_name>
130
+ cvs -d:pserver:someuser:somepassword@ server: /path/repo.git co <HEAD_name>
132
131
------
133
132
No special setup is needed for SSH access, other than having Git tools
134
133
in the PATH. If you have clients that do not accept the CVS_SERVER
@@ -138,7 +137,7 @@ Note: Newer CVS versions (>= 1.12.11) also support specifying
138
137
CVS_SERVER directly in CVSROOT like
139
138
140
139
------
141
- cvs -d ":ext;CVS_SERVER=git cvsserver:user@server/path/repo.git" co <HEAD_name>
140
+ cvs -d ":ext;CVS_SERVER=git cvsserver:user@server/path/repo.git" co <HEAD_name>
142
141
------
143
142
This has the advantage that it will be saved in your 'CVS/Root' files and
144
143
you don't need to worry about always setting the correct environment
@@ -186,8 +185,8 @@ allowing access over SSH.
186
185
+
187
186
--
188
187
------
189
- export CVSROOT=:ext:user@server:/var/git/project.git
190
- export CVS_SERVER="git cvsserver"
188
+ export CVSROOT=:ext:user@server:/var/git/project.git
189
+ export CVS_SERVER="git cvsserver"
191
190
------
192
191
--
193
192
4. For SSH clients that will make commits, make sure their server-side
@@ -203,7 +202,7 @@ allowing access over SSH.
203
202
`project-master` directory:
204
203
+
205
204
------
206
- cvs co -d project-master master
205
+ cvs co -d project-master master
207
206
------
208
207
209
208
[[dbbackend]]
0 commit comments