From owner-freebsd-questions Tue Jan 28 14:39:34 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 4E20037B401 for ; Tue, 28 Jan 2003 14:39:32 -0800 (PST) Received: from devil.stderror.at (at00d01-adsl-194-118-044-149.nextranet.at [194.118.44.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D5B543F43 for ; Tue, 28 Jan 2003 14:39:24 -0800 (PST) (envelope-from pinhead@stderror.at) Received: by devil.stderror.at (Postfix, from userid 1000) id 4F50F1522E; Tue, 28 Jan 2003 23:39:23 +0100 (CET) Date: Tue, 28 Jan 2003 23:39:23 +0100 From: Toni Schmidbauer To: freebsd Subject: Re: cvs Message-ID: <20030128223923.GK26027@devil.stderror.at> Reply-To: toni@stderror.at Mail-Followup-To: freebsd References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5lq+205vWdkqwtk" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i 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 --r5lq+205vWdkqwtk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 28, 2003 at 12:25:02PM -0600, Brian Henning wrote: > i created an empty one '/home/cvsroot/passwd' but, i don't know how to add > users to it.. > can anyone help me do this? the passwd file has to reside in /home/cvsroot/CVSROOT. have you done a cvs init /home/cvsroot ? the format of the file is: loginuser::workuser loginuser is the username you specify when executing cvs login. workuser is the username who does all operations in the repository and who owns all files in the rep. for a deeper explanation see the excellent cvs handbook at http://www.cvshome.org/docs/manual/cvs.html to get the crypted password i am using the following little perl script: ###### # DES/MD5 password generator # AltBlue 1999/02/10 ###### # Usage: # ./mkpass [] # - if no password supplied, a random password will be picked up. ######### use strict; use Crypt::PasswdMD5; my $password =3D defined $ARGV[0]?$ARGV[0]:random_hash(8,32); print "CLEAR:\t", $password, =20 $/, "DES:\t", crypt($password,random_hash(2,2)), =20 $/, "MD5:\t", unix_md5_crypt($password,random_hash(8,8)), =20 $/; sub random_hash { my ($ash,$ml) =3D ('',((defined$_[0]&&$_[0]>0)?$_[0]:4)); my $Ml=3D(defined$_[1]&&$_[1]>=3D$ml)?$_[1]:$ml+5; $ash .=3D ('.','/',0..9,'A'..'Z','a'..'z')[rand 64] foreach(1..($ml+int(rand $Ml-$ml))); $ash; } -- Terror ist der Krieg der Armen, | toni@stderror.at Krieg ist der Terror der Reichen. | Toni Schmidbauer - Sir Peter Ustinov | --r5lq+205vWdkqwtk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+Nwaau/mjSj7RMocRAhu8AJsHFaTtfjt7qWg38g0BlWjI0o5i9wCbBBP6 hJzwO6OSM1dIwAOKQV1a4k8= =55W8 -----END PGP SIGNATURE----- --r5lq+205vWdkqwtk-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message