anonymous cvs の作り方

まず ユーザ anoncvs を作ります。

 
# useradd -u 32765 -g 32766 -m anoncvs

次に /exports/cvsroot ディレクトリを準備し、cvs init します。

# mkdir /exports/cvsroot
# chown anoncvs /exports/cvsroot
# su anoncvs
% cvs -d /exports/cvsroot init
そして、架空のパスワードファイルを設定してください。
% echo anoncvs: > passwd
パスワードは必要ないので anoncvs: でかまいません。

次に、ロックファイルのための専用ディレクトリ /var/lock/cvs を作り、 オーナをユーザ anoncvs にします。 また SystemAuth=no に設定し、必要ならローカルタグ tag= も定義してくだ さい。

# Set this to "no" if pserver shouldn't check system users/passwords
SystemAuth=no

# Put CVS lock files in this directory rather than directly in the repository.
LockDir=/var/lock/cvs

# Set `TopLevelAdmin' to `yes' to create a CVS directory at the top
# level of the new working directory when using the `cvs checkout'
# command.
#TopLevelAdmin=no

# Set `LogHistory' to `all' or `TOFEWGCMAR' to log all transactions to the
# history file, or a subset as needed (ie `TMAR' logs all write operations)
#LogHistory=TOFEWGCMAR

# Set this to the name of a local tag to use in addition to Id
tag=FML

/etc/inetd.conf に以下のエントリを加え inetd に HUP シグナルを送る。

# anonymous cvs
cvspserver      stream  tcp     nowait  anoncvs /usr/pkg/bin/cvs cvs --allow-root=/exports/cvsroot pserver

my homepage is www.fml.org/home/fukachan/.
my free softwares are found at www.fml.org/software/.
fml 4.0 project homepage is www.fml.org/fml/menu.ja.html.
fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
about one floppy bsd routers, see www.bsdrouter.org/.
Also, visit nuinui's world :) at www.nuinui.net.
For questions about me, e-mail <fukachan@fml.org>.
Copyright (C) 1993-2008 Ken'ichi Fukamachi

Powered by NetBSD.