db at traceroute.dk
Wed Mar 10 06:37:54 PST 2004
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:
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
cvs -d /home/cvs/repos init
chown cvsd:cvsd /home/cvs/tmp/lock
truncate -s 0 /home/cvs/etc/passwd
mkdir /home/cvs/libexec #Is this a bug in cvsd?
cp /usr/libexec/ld-elf.so.1 /home/cvs/libexec
Create some users.
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:xx at xxxxx.xx:/repos checkout tester
setgid failed: Operation not permitted
What have I done wrong and what do I need to do now?
More information about the freebsd-hackers