Providing customized source code control with CVS
CVS needs to create lock files in order to do anything in the repository. Since CVS depends on directory permissions, it is necessary to move the locks elsewhere. This is a step-by-step approach.
Prerequisites:
If you fail to do this, you will have two systems of locks being used that have no interaction with each other, and that may lead to corrupting the repository.
Procedure:
LockDir=/home/cvs/locks at the end of the file.
Substitute your chosen lock directory for /home/cvs/locks, but
do not add any spaces.
At this time, you've allowed everybody who can read the repository directories read-only access, but only those who can write to them can check in.
You can test this easily by changing the permissions on the locks directory so you can't write to it, and trying to do any CVS operation (such as update or status). You should get a message saying that CVS cannot create the lock file.
All contents of these pages Copyright 2002 by David H. Thornley.
Permission granted for verbatim copying and use within an organization.