How do I import a module into the cvs repository?
Sit inside the top directory of the module, then issue the command:
    cvs import modulename vendor_tag release_tag
Where: Note that vendor_tag and release_tag are only used later to check out a copy of the initially imported module, even after many changes have been checked in. For this reason, the exact value of these fields is often not important. However, they must not be the same and must start with a letter.

After importing a new module into CVS, one must create an allowed file for that module to grant users permission to write to the module.

Create an "allowed" file in an empty directory. The file should contain usernames and/or "#include <group>" lines. (seeThis link). This looks like, for a module "foo":

    mkdir foo
    cd foo
    echo joe > allowed
    echo harry >> allowed
    echo jane >> allowed
    cvs -d import check_access.d/foo fermilab initial

How do I get write permission to a particular module?
Ask someone who currently has write permission to give you write permission?

How do I determine who has write permission?
do cvs co check_access.d/module, then inspect check_access.d/module/allowed The users listed in the allowed file have permission to give you write permission. If there is a line like
 #include group
in the allowed file, you will need to
cvs co check_access.d/groups/group
Then inspect the files allowed and/or members in check_access.d/groups/group
How do I give someone write permission to a particular module?
Three steps (assuming you have write permission to the module):
  1. cvs co check_access.d/module
  2. edit check_access.d/module/allowed
  3. cvs commit
How do I give a group of users permission to write to a module?
Place the line
#include group
where group is the name of the group alias constructed for this purpose.

How do I add someone to a group alias?
Three steps (assuming you have write permission to the group alias):
  1. cvs co check_access.d/groups/group
  2. edit cvs co check_access.d/groups/group/allowed or check_access.d/groups/group/members
  3. cvs commit
If the user is placed in allowed, they have permission to add other users to the group alias.
Users in the members file do not have this permission.
How do I request CVS access from a kerberized machine in the FNAL realm?
Request CVS access from the Fermilab Helpdesk, providing them with your kerberos principal name.

How do I request CVS access from another machine using ssh?
Request CVS access from the Fermilab Helpdesk, providing them with your ssh-key.

How do I request CVS access from a Windows NT machine?
Ask the helpdesk for Kerberos access, with your username, and follow the directions here to configure your system.
I was able to commit to the cvs repository before, but now it doesn't work. What's wrong?
Check the contents of the file CVS/Root in the directory in which you are working . It should contain
something like "". If it doesn't, this module was probably checked out
of a repository you don't have write permission to. This can be fixed by downloading this fixcvsroot
script and running it in the directory containing the broken module.

How do I check out a module with read-write access?
Use for your CVSROOT. The simplest way to do this is on the
command line:
cvs -d checkout foobar
To check out the module "foobar". CVS will remember the "-d "
business for the checked out module. You shouldn't have to type it again to do updates, commits, etc.

Why do I get this message?
    User `xxx' is not permitted to modify module `foobar'
    cvs server: Pre-commit check failed<
    cvs [server aborted]: correct above errors first!
This means cvsh is unable to determine your username (if the username shown is "cvsuser"), or you just don't have permission. For the Former case, see the notes in the "Client specific tips" in the wiki page. For the latter, see questions Q1 and Q2.
I followed the instructions from A11, but I still get the message from Q11!
The authentication mechanism FNAL uses requires you to forward your agent. Agent forwarding is
probably turned off in your system ssh_config file. Grep /etc/ssh_config (or maybe /etc/ssh/ssh_config)
for ForwardAgent to find out. To workaround this problem, you need to create a script:
ssh -A $*
Set the environment variable CVS_RSH to point to the script. You should now be in business.

Last updated: 2006-05-24