[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling which group id is granted access to new files

From: Mark E. Hamilton
Subject: Re: Controlling which group id is granted access to new files
Date: Thu, 01 Jun 2006 13:50:58 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.12) Gecko/20050920

Ed J wrote:
Is there a way to specify which group id is to be granted access to newly
created files in CVS?

We use CVS access via SSH (actually :ext:) with unique usernames for each
CVS user to interact with the repository.  We assign a unique group id to
each CVS module, then selectively grant group membership to individual
users.  Even though I've run chgrp on an entire CVS module to set its group,
when a user creates new content in that module, CVS assigns group access to
"users", giving anyone with shell access visibility to the file.  How do I
get CVS to use another group id?

You need to set the group 's' bit on all the sub-directories in the module within the repository. The following is how I usually do it (assuming a Unix-like system.)

chgrp -R <group_for_module> <module>
find <module> -type d -exec chmod g+s {} \;

Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]