info-cvs
[Top][All Lists]
Advanced

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

Re: RCS: Preserving group ownership


From: woger151
Subject: Re: RCS: Preserving group ownership
Date: 16 Dec 2006 15:38:14 -0800
User-agent: G2/1.0

Mark D. Baushke wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> address@hidden writes:
>
> > Mark D. Baushke wrote:
> > > address@hidden writes:
> > >
> > > > I want to be able to use RCS with files such that when I check out the
> > > > file, the group ownership is preserved.
> > > >
> > > > That is, I want owner = root, group owner = www.  But whenever I co,
> > > > group owner reverts to root.  That's even if I chgrp www on the *,v
> > > > file.
> > >
> > > In many filesystems, the default group of a new file may be defaulted to
> > > the current directory group by setting the set-gid bit on the directory.
> > >
> > > You do not specify which operating system or filesystem you are using
> > > for your repository, so further advice is not really possible.
> >
> > Linux (SuSE 10.1), ext3.
>
> Yes, the set-gid should do what you wish.
>
>      chown -R root:www /path/to/cvs/root/directory
>      find /path/to/cvs/root/directory -type d -exec chmod g+s {} \;
>
> This means that new temporary ,foo, files created in those directories
> will be of group www and when they are renamed to foo,v the group will
> be as you expect.
>
>       -- Mark

Thanks for your help; that solution worked.

Cheers.

>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (FreeBSD)
>
> iD8DBQFFhDQWCg7APGsDnFERAqybAJ9jJNE/txUTyRcui6xSEvm0GilY7QCdE8er
> EvvTkFXrNlzFNpUYyDP3nd4=
> =/b4s
> -----END PGP SIGNATURE-----



reply via email to

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