From owner-freebsd-questions@FreeBSD.ORG Tue Jan 31 09:42:05 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 2C93D16A420 for ; Tue, 31 Jan 2006 09:42:05 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DD2543D62 for ; Tue, 31 Jan 2006 09:42:04 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-8) with SMTP id k0V9g0o8018803; Tue, 31 Jan 2006 11:42:01 +0200 Received: by flame.pc (Postfix, from userid 1001) id B136A117FA; Tue, 31 Jan 2006 11:41:35 +0200 (EET) Date: Tue, 31 Jan 2006 11:41:35 +0200 From: Giorgos Keramidas To: david bryce Message-ID: <20060131094135.GA2042@flame.pc> References: <1138676399.30955.253148220@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1138676399.30955.253148220@webmail.messagingengine.com> Cc: freebsd-questions@freebsd.org Subject: Re: Attention: Giorgos Keramidas (Was: 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: Tue, 31 Jan 2006 09:42:05 -0000 On 2006-01-31 14:00, david bryce wrote: >>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 :) > > Giorgos, > > Thanks very much for replying! I wasn't aware of this environment > variable (even though I spent quite a while on this problem). Using > CVSUMASK certainly works when working on the server machine! > > However, I'm not sure what to do in client/server situations. The CVS > manual states: > > "Note that using the client/server CVS (see section Remote repositories), > there is no good way to set CVSUMASK; the setting on the client machine > has no effect." > > We are currently using a pserver installation, with developers using > windows machines. We need a way to achieve the same effect with a user on > a windows machine doing an import. Do you have any idea how this can be > done? Thank you! I'm not sure. I know that the setting of CVSUMASK on the server machine works if you use SSH tunneling though. If it's not too much trouble, you can set up SSH-based authentication instead of :pserver: and make sure the .bashrc or .cshrc of the developers on the server machine sets CVSUMASK correctly. SSH-tunneled CVS is what the FreeBSD project uses in the official CVS repository, so I guess this setup works as expected :)