[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:11529] Re: Plamo Documents Project



くわむらです。

> すごく基本的なことだと思うのですがポインターでもいいのでいくつか教えて
> くださいませ.
> 
> # 今日は出張が入ってたりしたので,ドキュメント類を読みきれてないんで申
> # しわけないんですが,,
> 
> 一応,plamo.linet.gr.jp で CVS を動かして /home/cvs を Repository にし
> ようとしています.その場合,
> 
> ・RSA|DSA 認証の設定ってサーバの方ではどういう風にやるもんでしょう?
> 
> ・anonymous CVS のサーバの場合,サーバの $CVSROOT/CVSROOT/passwd に 
> 
> anonymous: 
> 
> とか書いておけばいいってドキュメントにはあるんだけど,/etc/passwd に 
> anonymous なエントリって必要なんでしょうか?
> 
> # /etc/passwd に anonymou が無ければ no such user と蹴られるし,
> # anonymous なアカウントを作ったら co だけでなく anonymous で ci もで
> # きてしまったのでちょっとマズい,,(苦笑)

  以下、会社でCVSリポジトリを作ったときの記録です。参考になれば
よいのですが、設定はしてみたものの、しばらく使っていないのであま
り自身はありません。たぶん、オーム社から翻訳出版されている「CVSバ
ージョン管理システム」(でびあんぐる監訳)を見ながらだったと思いま
す。

--
 make cvs group and account

	# addgroup -g 503 cvs
	# adduser -u 503 -g 503 -c "CVS Repository" cvs


check and add cvspserver entries in /etc/services and /etc/inetd.conf.

/etc/services:
--
cvspserver	2401/tcp			# CVS client/server operations
cvspserver	2401/udp			# CVS client/server operations
--

/etc/inetd.conf:
--
cvspserver stream tcp nowait root /usr/bin/cvs cvs --allow-root=/home/cvs pserver
--


and then re-initialize inetd.

	# kill -HUP `pidof inetd`


add password to cvs system user and make CVSROOT/passwd for pserver

	# passwd cvs
	new password: xxxxxxxx

	# grep ^cvs: /etc/shadow | cut -f-2 -d: > ~cvs/CVSROOT/passwd
	# echo "cvs" >> ~cvs/CVSROOT/writers


swiching user cvs to initialize repository and test login to pserver

	# su cvs
	$ cvs -d /home/cvs init
	$ cvs -d :pserver:cvs@localhost:/home/cvs login
	$ exit


setup anonymous cvs

	# useradd -u 504 -c "Anonymous CVS User" \
		-d /home/cvs -s /bin/false anoncvs
	# echo "anoncvs" >> ~cvs/CVSROOT/readres
	# passwd anoncvs
	New UNIX password: anonymous
	# grep ^anoncvs: /etc/shadow | cut -f-2 -d: >> ~cvs/CVSROOT/passwd
	(# chmod go+w /home/cvs/CVSROOT/history )



setup for NATAS project

	# useradd -u 505 -g cvs -c "Public CVS Account for Project NATAS" \
		-d /home/cvs -s /bin/fales cvs-natas
	# passwd cvs-natas
	# echo "natas" >> ~cvs/CVSROOT/writers
	# echo "`grep ^natas: /etc/shadow | cut -f-2 -d:`:cvs-natas" \
		>> ~cvs/CVSROOT/passwd
	# chmod go+rx /home/cvs/

--
 Jun Kuwamura
rC Cm
  ^
  ~

References
[plamo:11515] Re: Plamo Documents Project, KOJIMA

[検索ページ] [メール一覧]
Plamo ML 公開システム