From owner-freebsd-questions Tue Jan 28 12:18: 6 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34CD337B401 for ; Tue, 28 Jan 2003 12:18:03 -0800 (PST) Received: from hotmail.com (oe45.law12.hotmail.com [64.4.18.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE68643F75 for ; Tue, 28 Jan 2003 12:18:02 -0800 (PST) (envelope-from b1henning@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 28 Jan 2003 12:17:57 -0800 X-Originating-IP: [192.216.212.193] From: "Brian Henning" To: "freebsd" Subject: Fw: cvs Date: Tue, 28 Jan 2003 14:17:26 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 28 Jan 2003 20:17:57.0683 (UTC) FILETIME=[59040030:01C2C70A] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John, the only step i am not clear on is step 4. Where can i find the passwd file that i should use? I assume that you are talking about the shadowed password file. Thanks for you input, Brian > > ----- Original Message ----- > From: "John Mills" > To: "Brian Henning" > Cc: "freebsd" > Sent: Tuesday, January 28, 2003 1:27 PM > Subject: Re: cvs > > > > Brian, all - > > > > It's been a while since I did this. It's a manual operation, and I've > > forgotten any subtleties. > > > > On Tue, 28 Jan 2003, Brian Henning wrote: > > > > > I am setting up a cvs server on my bsd box. So far i have enabled > pserver in > > > my /etc/initd.conf file. I have added a user called 'cvsuser' i have > created > > > a repository in /home/cvsroot i have pointed my CVSROOT variable to that > > > cvsroot directory. when i enter the command > > > cvs -d :pserver:cvsuser@localhost:/home/cvsroot login > > > i can't get logged in because i don't have a password set in my passwd > file. > > > i created an empty one '/home/cvsroot/passwd' but, i don't know howto > add > > > users to it.. > > > > In order to get started I did something like this: > > > > 1) I created a 'cvsuser' as you did, a real user with a real $HOME > > directory. > > > > 2) I gave that user a 'dumb' password. > > > > 3) I set my pserver to use the same password authorization that the host > > did (PAM/MD5 in this case). > > > > 4) I copied the system's password hash for that user into the right place > > in their line of the CVS 'passwd' file. (DON'T DO THIS FOR A REAL USER > > WITH A SIGNIFICANT PASSWORD!!) > > > > 5) I was then able to 'cvs ... login' as 'cvsuser' using the 'dumb' > > password. > > > > 6) I then gave all my real CVS users the same hash in their respective > > lines in the CVS 'passwd' file, so they wouldn't compromise their regular > > passwords by using them for CVS access. > > > > 7) When I had it working I dropped those passwords back to NULL entries by > > deleting the hash strings, as our access control was independent of CVS > > (and it had better be for you, too!). > > > > IIRC, even if you have a NULL password entry for that user, they have to > > enter _something_ at the prompt. I had some 'turnkey' build scripts and > > those used the dummy user's username as the password. It was accepted even > > though the $CVSROOT/CVSROOT/passwd entry was NULL. > > > > I found some examples either in the distribution version of the file, or > > in the 'Cederqvist' document's description of 'Administrative Files'. They > > weren't exactly what I needed, but they got me started. > > > > If that doesn't help, I'll go poke around in the setup and see what I > > _really_ did. > > > > DISCLAIMER: this was in RedHat Linux-7.1. > > > > - John Mills > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message