From owner-freebsd-questions@FreeBSD.ORG Mon Jan 30 10:24:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 047BB16A420 for ; Mon, 30 Jan 2006 10:24:55 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F93843D45 for ; Mon, 30 Jan 2006 10:24:53 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-8) with SMTP id k0UAOni5028386; Mon, 30 Jan 2006 12:24:49 +0200 Received: by flame.pc (Postfix, from userid 1001) id 60B9111827; Mon, 30 Jan 2006 12:24:25 +0200 (EET) Date: Mon, 30 Jan 2006 12:24:25 +0200 From: Giorgos Keramidas To: david bryce Message-ID: <20060130102425.GA1499@flame.pc> References: <1138596771.16135.253057403@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1138596771.16135.253057403@webmail.messagingengine.com> Cc: freebsd-questions@freebsd.org Subject: Re: CVS Import Permissions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2006 10:24:55 -0000 On 2006-01-30 15:52, david bryce wrote: > Hi All, > > I am having some confusion regarding the way CVS works with permissions > under unix when importing a new project. Currently, when I import a > project, I get this sort of permissions on the project directory: > > drwxr-x--- 2 jim cvs 512 Jan 27 12:31 test_proj > > Notice that the group (cvs) is not granted write access. Is this the > way it's supposed to work? That depends on what your `umask' currently is. > Do I have to use chmod to grant write access to the group every time I > do an import? No. The correct way to fix this is to set CVSUMASK in your shell environment, and then import the files :) Of course, now that the import is done, you can still use a bit of ``repository hackery'' to set the g+w bit for the checked in sources. > Or is my CVS not configured correctly? Your cvs is fine. The default umask is 022, which strips off g+w permissions from all newly created files; including the ones CVS creates in the repository. > If I don't grant write access to the group on that directory, every > check in fails with a "could not open lock file > `/usr/local/cvs/test_proj/,test.txt,': Permission denied". I tried > setting the LockDir in the config file to a world-writable directory, > but this doesn't seem to solve the problem when trying to check-in. The RCS files inside `/usr/local/cvs/test_proj' have no group-write permission. You can fix this by something like this: $ cd $CVSROOT $ find . -print0 | xargs -0 chmod g+w This is the sort of ``repository hackery'' I mentioned above.