From owner-freebsd-cvsweb Tue Jul 30 4:32:52 2002 Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACA6837B400 for ; Tue, 30 Jul 2002 04:32:49 -0700 (PDT) Received: from posti.pp.htv.fi (posti.pp.htv.fi [212.90.64.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4C0143E6A for ; Tue, 30 Jul 2002 04:32:48 -0700 (PDT) (envelope-from scop@FreeBSD.org) Received: from cs78128057.pp.htv.fi ([62.78.128.57]) by posti.pp.htv.fi (8.11.1/8.11.1) with ESMTP id g6UBVmH16139; Tue, 30 Jul 2002 14:31:48 +0300 (EETDST) Subject: Re: Read-only access to repository w/ cvsweb 2.0.5? From: Ville =?ISO-8859-1?Q?Skytt=E4?= To: Terry Kennedy Cc: freebsd-cvsweb@FreeBSD.org In-Reply-To: <01KKP19SBHES000BQB@tmk.com> References: <01KKP19SBHES000BQB@tmk.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 30 Jul 2002 14:31:53 +0300 Message-Id: <1028028713.1921.86.camel@bobcat.ods.org> Mime-Version: 1.0 Sender: owner-freebsd-cvsweb@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 2002-07-30 at 12:41, Terry Kennedy wrote: > I'm trying to upgrade from the original cvsweb 1.0 to 2.0.5, but I'm ha= ving > a silly problem when trying to view a revision or use the "download" opti= on - > I get "Error: Unexpected output from cvs co: cvs checkout: Sorry, you don= 't > have read/write access to the history file cvs [checkout aborted]: > /foo/CVS/CVSROOT/history: Permission denied". [snip] Terry, this looks like a configuration problem to me. FreeBSD-CVSweb defaults to using the "-l" option of cvs(1), which should skip any logging to the history file, so your cvsweb user wouldn't need even read access to CVSROOT/history. Please verify that you have set up your cvsweb.cgi to use the new cvsweb.conf (with your possible customizations) that comes with FreeBSD-CVSweb. See @cvs_options in cvsweb.conf. > The platform is BSD/OS 4.3, cvsweb is running as www.www, and the CVS > repository is owned by another user, but is all at least 755/644 for file= s > and directories. I really don't want to make the CVS repository writable > by the cvsweb user. Can you checkout from a shell as the www user using the -l option, ie: cvs -l checkout some/file > I'm oviously missing something obvious, but I've been banging my head o= n > this for hours and haven't gotten anywhere, so I'm resorting to asking th= e > list. Another thing you could check is if your platform's cvs(1) command has the "-R" option for read-only repository access. If it does, please try adding that manually to @cvs_options in cvsweb.conf and send me the output of "uname" on your machine so I can make it default on it. Of course, as Yann said, you can make the CVSROOT/history file writable by the cvsweb user, but that shouldn't be necessary unless you *want* to log checkouts etc there. Yet another option (untested, not recommended _at_all_) could be to hack cvsweb.cgi to use the co(1) command of rcs, instead of "cvs co" on checkouts. HTH, --=20 \/ille Skytt=E4 scop at FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-cvsweb" in the body of the message