当前位置: 首页 > 工具软件 > cvsd > 使用案例 >

cvsd

巩枫
2023-12-01



  # addgroup --system cvsd       (or groupadd)
  # adduser --system --ingroup cvsd --home /var/lib/cvsd \
            --shell /bin/false --gecos 'cvs pserver daemon' cvsd
  # cvsd-buildroot /var/lib/cvsd
  # cvs -d /var/lib/cvsd/myrepos init
  # cvsd-passwd /var/lib/cvsd/myrepos +anonymous
  # touch /var/lib/cvsd/myrepos/CVSROOT/writers
  edit /var/lib/cvsd/myrepos/CVSROOT/config
    add "SystemAuth=no"
    add "PamAuth=no"      (on systems that have this option)
    add "LockDir=/tmp/myrepos"
  # mkdir /var/lib/cvsd/tmp/myrepos
  # chown cvsd:cvsd /var/lib/cvsd/tmp/myrepos
  edit /etc/cvsd/cvsd.conf
    set "RootJail /var/lib/cvsd"
    set "Repos /myrepos"

/etc/init.d/cvs restart

sudo chmod -R 777 /var/lib/cvsd/myrepos/

cvs -d /var/lib/cvsd/myrepos/ import -m "Imported sources" shell_lib/ shell_lib start

http://rimuhosting.com/howto/cvs.jsp


19. How do I enable syslog inside the chroot jail?


    If you want to have logging in programs from within your chroot jail you
    have to tell syslogd to listen in the chroot jail also. With most versions
    of syslogd you can add '-a /var/lib/cvsd/dev/log' to your syslogd
    invocation (of cource replace /var/lib/cvsd with the location of your
    chroot jail).
    On debian systems you should edit /etc/init.d/sysklogd and modify the
    'SYSLOGD=""' line to read:
    SYSLOGD="-a /var/lib/cvsd/dev/log"
    You may have to check the manual page fof syslogd on your system though.


 类似资料:

相关阅读

相关文章

相关问答