Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2003 23:39:23 +0100
From:      Toni Schmidbauer <toni@stderror.at>
To:        freebsd <freebsd-questions@FreeBSD.ORG>
Subject:   Re: cvs
Message-ID:  <20030128223923.GK26027@devil.stderror.at>
In-Reply-To: <OE31zPZrIkyPzGNsokL00000cba@hotmail.com>
References:  <OE31zPZrIkyPzGNsokL00000cba@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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:<crypted password>: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 [<password>]
# - 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030128223923.GK26027>