info-cvs
[Top][All Lists]
Advanced

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

RE: Bad files perms


From: Noel Yap
Subject: RE: Bad files perms
Date: Fri, 1 Feb 2002 07:04:07 -0800 (PST)

Initially:
find $CVSROOT -type d | xargs chmod g+s

I forget whether SGID is inherited by new
subdirectories.  If not, have a loginfo script set it.

Noel
--- GOMEZ Henri <address@hidden> wrote:
> >> The problem is that each time a cvs user like bob
> commit
> >> a file or directory, like test in prj1, 
> >> the file is bob:bob instead of bob:cvsusers 
> >
> >You need to set the SGID bit on all the repository
> directories (chmod
> >g+s).  That causes newly created files and
> directories to get their
> >group ownership from their parent directory rather
> than from the
> >creating process.
> 
> Did there is an easy way to propagate the SGID bit
> to sub-dirs ?
> 
> ie:
> 
> /home/cvsroot/testproj is owned by bob:cvsusers with
> SGID bit set
> 
> linda commit test.java
> 
> /home/cvsroot/testproj/test.java will be owned by
> linda:cvsusers
> 
> now linda create a subdir packa
> 
> /home/cvsroot/testproj/packa is owned by linda:linda
> !
> 
> Thanks for your expertise here also :)
> 
> BTW: May be there is post-commit hack which could be
> used ?
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs


__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com



reply via email to

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