info-cvs
[Top][All Lists]
Advanced

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

Re: Remote repository permissions best practices


From: Todd Denniston
Subject: Re: Remote repository permissions best practices
Date: Mon, 28 Mar 2005 16:05:51 -0500

Todd Denniston wrote:
> 
> "Howard, Les" wrote:
> >
> > I've hacked my way through setting up a few CVS repositories in the past,
> > but I've always struggled with getting the user/group ownership and file
> > permissions correct.  I always seem to end up with a setup where the users
> > can't access the files that other users have submitted without going into
> > the repository as root and chmod/chowning some of the files.
<SNIP>
> 1) all the users who need write access to the repository should be in the
> same UNIX group.
> 2) after doing `cvs init` you need to chmod g+sw the repository project
> directory, i.e.,
> `chown :projectUNIXgroup $CVSROOT/project/; \
> chmod g+sw $CVSROOT/project/`
BTW, as you currently have a repo, you may need to walk the whole existing
repository tree and do something like:
(assuming no spaces in your directory names, and you use this at your own
risk)
cd $CVSROOT/
chown :projectUNIXgroup project/
chmod g+sw project/
for i in `find project -type d`
do
 chown :projectUNIXgroup $i
 chmod g+sw $i
done

-- 
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane) 
Harnessing the Power of Technology for the Warfighter




reply via email to

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