From owner-freebsd-questions@FreeBSD.ORG Sat Jan 7 21:28:28 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 DBE3616A420 for ; Sat, 7 Jan 2006 21:28:28 +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 15D9143D48 for ; Sat, 7 Jan 2006 21:28:25 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (patr530-a221.otenet.gr [212.205.215.221]) by kane.otenet.gr (8.13.4/8.13.4/Debian-8) with ESMTP id k07LSMB7017561; Sat, 7 Jan 2006 23:28:22 +0200 Received: by flame.pc (Postfix, from userid 1001) id 269CC11856; Sat, 7 Jan 2006 23:26:59 +0200 (EET) Date: Sat, 7 Jan 2006 23:26:59 +0200 From: Giorgos Keramidas To: Jose Liang Message-ID: <20060107212659.GA2175@flame.pc> References: <000601c61351$930ab8f0$2e02a8c0@josematrix> <003401c6133e$427b8850$2e02a8c0@josematrix> <20060107045755.GA4344@flame.pc> <000f01c61350$e706c5d0$2e02a8c0@josematrix> <20060107173741.GB1053@flame.pc> <005601c613b7$993d1d60$2e02a8c0@josematrix> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <005601c613b7$993d1d60$2e02a8c0@josematrix> Cc: freebsd-questions@freebsd.org Subject: Re: Problem with cvs commit failed in cvs-freebsd setup 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: Sat, 07 Jan 2006 21:28:29 -0000 On 2006-01-08 02:24, Jose Liang wrote: > The results of cvsd-buginfo are: Very detailed information. Thanks for taking the time to gather it! > cvsd 1.0.10 built with: > > ./configure --with-libwrap --prefix=/usr/local --build=i386-portbld-freebsd5 > .4 LDFLAGS= CFLAGS=-O -pipe CPPFLAGS= build_alias=i386-portbld-reebsd5.4 > CC=cc > > /usr/local/etc/cvsd/cvsd.conf: > RootJail /home/cvs/cvs > Uid cvs > Gid cvs The group id which cvsd tries to set is 'cvs'. Nice so far. > /home/cvs/cvs: > [...] > drwxr-xr-x cvs cvs 512 Jan 7 08:10 etc > -rw------- cvs cvs 168 Jan 7 08:10 etc/master.passwd > -rw-r--r-- cvs cvs 153 Jan 7 08:10 etc/passwd > -rw-r--r-- cvs cvs 40960 Jan 7 08:10 etc/pwd.db > -rw------- cvs cvs 40960 Jan 7 08:10 etc/spwd.db You don't have an /etc/group file within the chroot environment. This may be a problem, since the Perl scripts of the CVSROOT/ directory will run "inside" the chroot, so they will not have access to user group information. > Is there a any incorrect one that needs changing? > Thanks a lot! Try creating a minimal /etc/group file inside the chroot environment, and see if this fixes the problem. If not, you may have to dig a bit deeper into Perl stuff and add debugging code around the execution of CVSROOT/commitcheck, i.e. by modifying CVSROOT/commitinfo to call a script of your own, which prints more information about the process that tries to invoke CVSROOT/commitcheck.