Permissions

Users of CVS have to take some one-time steps so that the permissions of files the commit will be correct. (Otherwise, other uses will be unable to modify or even update files that such users have created.)

  1. Set up permissions so all files are group writable. All directories need to be group rwx. (as far as I know, this is already done in /ai/kevinlb/cvs, for the group klb).
  2. Copy the file from /hooks/post-commit.tmpl to /hooks/post-commit and add the lines:

  • chgrp -R
  • chmod -R g+rwx

Each student will have to do this so that whenever they commit files, the files will get chgrp'ed and chmod'ed.

These instructions come from Tim (timkl@csDELETEthisTEXT.ubc.ca); please direct questions to him.

Permissions redux

The above didn't seem to always work. Here's something else from Sean Godel:

Hi Kevin, so doing more research into this I discovered a few things. If the CVS client is configured to go through okanagan then group inheritance is preserved. If it goes through cascade group inheritance is preserved for the first directory created but nothing after that. This might be an issue with NFSv4 and the NetApp as we have discovered other Unix conventions that operate differently with this mapping.

For now I would recommend all your users to switch to okanagan as their contact server. If some have trouble with it, let me know as its most likely their environment which can be easily fixed.

CVS in Windows

A good Windows CVS client that integrates with Explorer is TortoiseCVS. It's open-source.

Setting up a public/private key pair so that you don't have to authenticate every time

  • In UNIX type ssh-keygen -t dsa.
  • Copy the resulting .pub file to the .ssh directory in your UNIX home directory, and append it to the authorized_keys file in the same directory. (Create that file if you need to)
  • Copy the resulting file with no extension (your private key) to the computer you want to connect from
  • Install Putty
  • Use the PuttyGen program to convert the key to Putty format
  • Then run the Pageant program and add the key that you just created.
  • To load the key automatically when Windows starts, put Pageant in the startup folder, and add the full path to the key (in quotes if necessary) as an argument.
  • Now you will not be prompted for a password when doing a CVS update with Tortoise.

-- KevinLeytonBrown - 16 May 2007


This topic: BETA > SunGridEngine > CVS
Topic revision: r4 - 2007-09-21 - KevinLeytonBrown
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback