徐小玉的博客。
分类: LINUX
2008-03-21 10:21:07
环境设置:指定CVS库的路径CVSROOT
tcsh
setenv CVSROOT /path/to/cvsroot
bash
CVSROOT=/path/to/cvsroot ; export CVSROOT
startsrc –s inetd / stopsrc –s inetd
用户同样可以通过startsrc –s inetd / stopsrc –s inetd来启动/停止inetd进程。
refresh -s inetd
netstat -a |grep cvspserver
:tcp4 0 0 *.cvspserv *.* LISTEN
???
cvspserver stream tcp nowait root /tmp/ibmsupt/cvs-1.11.22/src/cvs cvs -f --allow-root=/home/cvsroot pserver
cvs [login aborted]: end of file from server (consult above messages if any):
tcsh
setenv CVSROOT /path/to/cvsroot
bash
CVSROOT=/path/to/cvsroot ; export CVSROOT
1. cvs login works but cvs checkout or other commands fail with "cvsd: no such user" or "cvsd: no such system user"
The cvs pserver maps users found in the repository passwd file (CVSROOT/passwd) to users in the system passwd file. Since cvs is running in a chroot environment the system passwd file is located in /var/lib/cvsd/etc/passwd (depending on what you set your RootJail to). If you set up user mappings correctly there should be a cvsd user in the passwd file.
cvsd-buildroot checks the chroot jail's /etc/passwd file and adds users from the system /etc/passwd if needed (and generates warnings for missing users).
If you need ldap or similar methods to provide user id information you need to set up the proper configuration inside the chroot jail.