Re: cvsd problems

2004-03-10 Thread db
On Wed, 10 Mar 2004 13:00:26 -0500
"Dan Langille" <[EMAIL PROTECTED]> wrote:

> > Ok nevermind, I found the problem.
> 
> But you haven't shared it.  Please do.

cvsd wasn't running as root inside the jail. So I guess I'll just have
to create a repos for every group/project?!?! Or run cvsd as
root...don't know what I will do.

br
db
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cvsd problems

2004-03-10 Thread Dan Langille
On 10 Mar 2004 at 19:00, db wrote:

> On Wed, 10 Mar 2004 15:45:56 +0100
> db <[EMAIL PROTECTED]> wrote:
> 
> > > I want to run a jailed cvs server, where users only have write
> > > access to their own projects. So this is what I have done:
> > 
> > Sorry, forgot to tell you:
> > Arch: i386
> > FreeBSD: 5.2.1 release
> > CVSd: 1.0.1
> 
> Ok nevermind, I found the problem.

But you haven't shared it.  Please do.
-- 
Dan Langille : http://www.langille.org/
BSDCan - http://www.bsdcan.org/

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cvsd problems

2004-03-10 Thread db
On Wed, 10 Mar 2004 15:45:56 +0100
db <[EMAIL PROTECTED]> wrote:

> > I want to run a jailed cvs server, where users only have write
> > access to their own projects. So this is what I have done:
> 
> Sorry, forgot to tell you:
> Arch: i386
> FreeBSD: 5.2.1 release
> CVSd: 1.0.1

Ok nevermind, I found the problem.

br
db
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: cvsd problems

2004-03-10 Thread db
On Wed, 10 Mar 2004 15:39:15 +0100
db <[EMAIL PROTECTED]> wrote:

> I want to run a jailed cvs server, where users only have write access
> to their own projects. So this is what I have done:

Sorry, forgot to tell you:
Arch: i386
FreeBSD: 5.2.1 release
CVSd: 1.0.1
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


cvsd problems

2004-03-10 Thread db
Hi all

I want to run a jailed cvs server, where users only have write access to
their own projects. So this is what I have done:
Jaildir: /home/cvs
portinstall cvsd
mv /usr/local/etc/rc.d/cvsd.sh.sample /usr/local/etc/rc.d/cvsd.sh
chmod 770 /usr/local/etc/rc.d/cvsd.sh
mv /usr/local/etc/cvsd/cvsd.conf.sample /usr/local/etc/cvsd/cvsd.conf
*Edit /usr/local/etc/cvsd/cvsd.conf
RootJail /home/cvs
Repos /repos
cvsd-buildroot /home/cvs
cvs -d /home/cvs/repos init
mkdir /home/cvs/tmp/lock
chown cvsd:cvsd /home/cvs/tmp/lock
truncate -s 0 /home/cvs/etc/passwd
*Edit /home/cvs/repos/CVSROOT/config
LockDir=/tmp/lock
mkdir /home/cvs/libexec #Is this a bug in cvsd?
cp /usr/libexec/ld-elf.so.1 /home/cvs/libexec
Create some users.
/usr/local/etc/rc.d/cvsd.sh start

Creating a new user/project:
cvsd-passwd /home/cvs/repos username
Add the user to /home/cvs/(master.)passwd
pwd_mkdb -d /home/cvs/etc /home/cvs/etc/master.passwd

Now I can login, but when wanting to do anything I get:
cvs -d :pserver:[EMAIL PROTECTED]:/repos checkout tester
setgid failed: Operation not permitted

What have I done wrong and what do I need to do now?

br
db
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"