#眉標=Eclipse #副標=OpenSource整合性開發工具(3) #副標=Eclipse與實用軟工工具(上)-CVS #作者=文/Doug Chen =========程式======== 程式1 /etc/xinetd.d/CVSpserver service CVSpserver { disable = no socket_type = stream wait = no user = root server = /usr/bin/CVS server_args = -f --allow-root /home/CVS/CVSroot pserver log_on_success += USERID log_on_failure += USERID } =========程式======== =========程式======== # CVS -d /home/CVS/CVSroot init =========程式======== =========程式========= # /etc/init.d/xinetd restart =========程式========= =========程式========= drwxrwxr-x 3 CVS 4096 12月 1 15:29 /home/CVS/CVSroot =========程式========= =========程式========= CVS:x:674:CVSuser =========程式========= =========程式========= # CVS -d :pserver:CVSuser@runpc.com:/home/CVS/CVSroot login (相關資源5) Logging in to :pserver:CVSuser@runpc.com:2401/home/CVS/CVSroot CVS password: =========程式========= =========程式========= # CVS -d :pserver:CVSuser@runpc.com:/home/CVS/CVSroot import testProject/ testCVS start =========程式========= =========程式========= #vi /home/CVS/CVSroot/CVSROOT/passwd =========程式========= =========程式========= test1:cSboYKwSz9htE:CVS test2:cSboYKwSz9htE:CVS =========程式========= ==========box========== 註1 在此可使用以下的小程式,建立檔名為CVSpasswd.pl: #!/usr/bin/perl srand (time()); my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))"; my $salt = sprintf ("%c%c", eval $randletter, eval $randletter); my $plaintext = shift; my $crypttext = crypt ($plaintext, $salt); print "${crypttext}"; ==========box========== =========程式========= #SystemAuth=no =========程式========= =========程式========= # /etc/init.d/xinetd restart =========程式=========