Thank you!!!  This is EXACTLY what I needed.  Setting the setgid bit worked
perfectly and exactly as you described.

This is one of THE BEST mailing lists/newsgroups I have ever seen during my
15 years in the software development field.  I can only hope I can be as
helpful to others in other areas are you guys are here.

Thanks again,

- Dennis

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Brett Neumeier
Sent: Thursday, May 25, 2000 12:13 PM
To: Dennis Jones
Subject: Re: groups and owners in CVS


> I have a group called "cvs" of which all users of the cvs repository are
> members.  If one of those users creates a new directory and adds it to the
> repository, cvs identifies the new directory's owner and group name with
> that specific user (and as you know, this also happens with files).  Now,
> when another user tries to checkout or update his local tree, cvs
complains
> with:

Dennis,

In many versions of UNIX, setting the SGID bit for a directory causes
any new files created in that directory to assume the group ownership of
the parent directory, rather than the primary group ownership of the
user.

So:

$ su -
# cd $CVSROOT
# find . -type d -exec chmod 2775 {} \;
# find . -type d -exec chgrp cvs {} \;
# exit

Note that you may want to reduce privileges on the $CVSROOT/CVSROOT
directory.  But on some systems (including Linux, which is what I'm
using) this will fix things up.

Note that you should also ensure that the normal user's UMASK is 002
rather than 022; otherwise the new directories won't be group writable.

Regards,

Brett Neumeier


Reply via email to