[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ownership and group change in repository after check-in
From: |
Ross Patterson |
Subject: |
Re: Ownership and group change in repository after check-in |
Date: |
Thu, 18 Mar 2004 13:30:09 -0500 |
User-agent: |
KMail/1.4.3 |
On Thursday 18 March 2004 01:09 pm, Mala T wrote:
> I have setup a cvs repository called BWSI and put all
> users of this
> repository in a group called 'bwsi'.
> After a user checked-in something, a directory in the
> repository is now owned by that user and the group
> called 'users'(probably this user's default group),
CVS depends on a filesystem setting the default group of a file to the group
that owns the directory it resides in. This is not the normal mode of
operation for some filesystems, including the Linux ext2 and ext3 systems.
It's a good guess that you're using one of those. To get the correct
behavior, you can change the permissions on the CVS repository to set the
"group sticky bit" and then change the group ownership of all the directories
and files in the repository to what they should be. From then on, the files
and directories will be owned by the correct group, even after a checkin.
In short, "find $REPOSITORY -type d | xargs chmod g+s" and "chown -R :bwsi
$REPOSITORY" are your friends.
--
Ross A. Patterson
Chief Technology Officer
CatchFIRE Systems, Inc.
5885 Trinity Parkway, Suite 220
Centreville, VA 20120
(703) 563-4164