Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jan 2006 23:26:59 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Jose Liang <jliang@so-net.net.tw>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Problem with cvs commit failed in  cvs-freebsd setup
Message-ID:  <20060107212659.GA2175@flame.pc>
In-Reply-To: <005601c613b7$993d1d60$2e02a8c0@josematrix>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-01-08 02:24, Jose Liang <jliang@so-net.net.tw> 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.




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