[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: |
Mark D. Baushke |
Subject: |
Re: Ownership and group change in repository after check-in |
Date: |
Thu, 18 Mar 2004 10:24:50 -0800 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mala T <address@hidden> writes:
> I noticed that when a user checks in a file, that file
> ownership changes(the user that checked in now owns that
> file) in the repository as well as the group owning that
> directory changes to that user's default or primary
> group.Is there any way to prevent this from happening?
Some OS versions use a directory set-gid bit to have a new
put into the directory inherit the group of the directory
(eg, Solaris). Others will inhert the gid of the directory
by default (eg, FreeBSD).
> Is it true that CVS recreates the archive file each
> time there is a checkin?
Yes.
> I am facing a problem right now.
>
> 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), so, others in
> bwsi group that are not members of 'users' are unable to
> checkout.I belong to 'users'(and also bwsi) but am unable
> to change the group ownership for this directory. It says,
> 'not owner'. How can I prevent this from happening?
Depends on the OS being used on as your server. You may be
able to fix the group problem using the following:
find $CVSROOT -type d -exec chgrp bwsi {} \;
find $CVSROOT -type d -exec chmod g+rwxs {} \;
> For now, I have asked our sys admin to change the
> default group for all members in the group 'bwsi' to
> 'bwsi'. Is there any other solution for this?
See above.
Good luck,
-- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)
iD8DBQFAWelx3x41pRYZE/gRAvQVAJ4hEBc1XBGlUPFnGw9HePmqNZfvEwCfX5gP
BHzzqzRvUvMRV3Hu7S4GCs8=
=7i55
-----END PGP SIGNATURE-----