info-cvs
[Top][All Lists]
Advanced

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

Re: How to control file group on commit?


From: Andrew Johnson
Subject: Re: How to control file group on commit?
Date: Mon, 09 Dec 2002 13:59:44 -0000
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.1) Gecko/20020827

Matt Olson wrote:

We're trying to change the file's group after a commit.  We've tried a
call to chgrp (actually, a wrapper script around chgrp) in commitinfo, in
loginfo (via %s expansion), and with -i in modules.  None works.  I've
looked through Cederkvist and the Coriolis book, with no success.

Is this even the right approach?  Is there another way to specify file
ownerships of the version files in the repository?

This is the wrong approach, as you seem to have guessed. Read up about the set-group-id (sgid) filesystem permission bit on directories.

Basically you need to to a 'chmod g+s' on all of the *directories* in the repository that you'll need for the project, making sure that you've fixed the group ownership of any dirs that are wrong at the same time. That will fix the CVS commit problem.

- Andrew
--
"Life is what happens while you're busy making other plans." - John Lennon


reply via email to

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