I ran cvsd-buildroot from 1.0.22 against the installed 1.0.21: it did
not help.

This is what I did, together with the requested output from cvsd-buginfo
(from the installed 1.0.21, anonymized)

apt-get purge cvsd                  #...and remove /var/lib/cvsd
apt-get install cvsd
cd /var/lib/cvsd/
tar xzvf /root/myrepo.tgz 
chown cvsd.cvsd myrepo/

cvs -d :pserver:user@localhost:/myrepo co something
Fatal error, aborting.
cvsd: no such system user

tar xzf cvsd-1.0.22.tar.gz 
cd cvsd-1.0.22/
./configure 
make
./cvsd-buildroot /var/lib/cvsd/
creating directory structure under /var/lib/cvsd/... done.
installing binaries... cvs.
looking for non-linked system libraries... done.
installing libraries... done.
creating /var/lib/cvsd//dev devices... already there.
adding users to /var/lib/cvsd//etc/passwd....
fixing ownership... done.
chrooted system created in /var/lib/cvsd/
if your cvs binary changes (new version) you should rerun cvsd-buildroot

cvs -d :pserver:user@localhost:/myrepo co something
Fatal error, aborting.
cvsd: no such system user


cvsd-buginfo
Warning: be sure to review this information to make sure it does
         not contain any sensitive data!

cvsd 1.0.21 built with:
 ./configure --build x86_64-linux-gnu --prefix=/usr 
--mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc 
--enable-warnings --disable-dependency-tracking --with-cvs=/usr/bin/cvs 
--with-perl=/usr/bin/perl build_alias=x86_64-linux-gnu CFLAGS=-g -O2 
LDFLAGS=-Wl,-Bsymbolic-functions CPPFLAGS=

uname -a output:
 Linux some-name 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 
x86_64 x86_64 x86_64 GNU/Linux

/etc/cvsd/cvsd.conf:
 RootJail /var/lib/cvsd
 Uid cvsd
 Gid cvsd
 Nice 1
 Umask 027
 PidFile /var/run/cvsd.pid
 MaxConnections 10
 Log syslog info
 Listen * 2401
 Repos /myrepo

/var/lib/cvsd:
 drwxr-xr-x root root    4096 Jun 26 15:02 /var/lib/cvsd
 drwxr-xr-x root root    4096 Jun 26 14:38 bin
 -rwxr-xr-x root root  756720 Jun 26 15:05 bin/cvs
 drwxr-xr-x root root    4096 Jun 26 14:38 dev
 crw-rw-rw- root root    1, 3 Jun 26 14:35 dev/null
 crw-rw-rw- root root    1, 5 Jun 26 14:35 dev/zero
 drwxr-xr-x root root    4096 Jun 26 14:38 etc
 -rw-r--r-- root root     113 Jun 26 14:38 etc/passwd
 drwxr-xr-x root root    4096 Jun 26 14:38 lib
 -rwxr-xr-x root root  117960 Jun 26 15:05 lib/ld-linux.so.2
 drwxr-xr-x root root    4096 Jun 26 14:38 lib/x86_64-linux-gnu
 -rwxr-xr-x root root 1638120 Jun 26 15:05 lib/x86_64-linux-gnu/libc.so.6
 -rwxr-xr-x root root   43296 Jun 26 15:05 lib/x86_64-linux-gnu/libcrypt.so.1
 -rwxr-xr-x root root   14696 Jun 26 15:05 lib/x86_64-linux-gnu/libdl.so.2
 -rwxr-xr-x root root   97248 Jun 26 15:05 lib/x86_64-linux-gnu/libnsl.so.1
 -rwxr-xr-x root root   51712 Jun 26 15:05 lib/x86_64-linux-gnu/libpam.so.0
 -rwxr-xr-x root root  140254 Jun 26 15:05 lib/x86_64-linux-gnu/libpthread.so.0
 -rwxr-xr-x root root   31752 Jun 26 15:05 lib/x86_64-linux-gnu/librt.so.1
 -rwxr-xr-x root root   96816 Jun 26 15:05 lib/x86_64-linux-gnu/libz.so.1
 drwxr-xr-x root root    4096 Jun 26 15:02 lib32
 -rwxr-xr-x root root   79672 Jun 26 15:05 lib32/libnsl.so.1
 -rwxr-xr-x root root   26400 Jun 26 15:05 lib32/libnss_compat.so.2
 -rwxr-xr-x root root   42580 Jun 26 15:05 lib32/libnss_files.so.2
 drwxr-xr-x root root    4096 Jun 26 14:38 lib64
 -rwxr-xr-x root root  141088 Jun 26 15:05 lib64/ld-linux-x86-64.so.2
 drwxr-xr-x cvsd cvsd    4096 Sep 10  2009 myrepo
 drwxrwxrwt root root    4096 Jun 26 14:38 tmp
 drwxr-xr-x root root    4096 Jun 26 15:05 usr
 lrwxrwxrwx root root       6 Jun 26 14:38 usr/bin -> ../bin
 lrwxrwxrwx root root       6 Jun 26 14:38 usr/lib -> ../lib
 lrwxrwxrwx root root       8 Jun 26 15:05 usr/lib64 -> ../lib64

/usr/bin/cvs:
 -rwxr-xr-x root root 756720 Nov 11  2008 /usr/bin/cvs

/usr/bin/cvs --version:
 Concurrent Versions System (CVS) 1.12.13 (client/server)

/var/lib/cvsd/bin/cvs --version:
 Concurrent Versions System (CVS) 1.12.13 (client/server)

/var/lib/cvsd/etc/passwd: (passwds removed)
 root::0:0::/:/bin/bash
 nobody::65534:65534::/:/bin/sh
 cvsd::116:125::/:/bin/false

System passwd file: (passwds removed)
 cvsd::116:125::/var/lib/cvsd:/bin/false
 nobody::65534:65534::/nonexistent:/bin/sh
 root::0:0::/root:/bin/bash

/var/lib/cvsd/home/cvs/CVSROOT/config:
 UseNewInfoFmtStrings=yes

/var/lib/cvsd/home/cvs/CVSROOT/passwd: (passwds removed)
 user::cvsd
 user2::cvsd
 user3::cvsd
 user4::cvsd
 user5::cvsd
 user6::cvsd

Warning: neither a readers file nor a writers file was found inside
         /var/lib/cvsd/home/cvs/CVSROOT. This means that all users have
         write access!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/801675

Title:
  cvsd: no such system user -- missing library in chroot jail?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cvsd/+bug/801675/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to