info-cvs
[Top][All Lists]
Advanced

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

Re: Don't Laugh


From: Todd Denniston
Subject: Re: Don't Laugh
Date: Fri, 28 Sep 2007 14:06:01 -0500
User-agent: Thunderbird 2.0.0.6 (X11/20070728)

address@hidden wrote, On 09/28/2007 12:52 PM:
Let me rephrase that.  How do I set up the permissions so that the new
files and directories added by all the users in the group
will be owned by the cvs userid?

Aaron Hirshberg


You don't need (or even really want) to set the user id.

What you want to make sure is being set and propagated correctly is the group id on the files and directories[1]. With Linux servers that for me[2] generally means running:
chown :projgroup myrepodir/
chmod g+rws myrepodir
when you start a new project, or if you are doing it late
chown --recursive :projgroup myrepodir/
chmod --recursive g+r myrepodir
chmod g+rws myrepodir
find myrepodir -type d|xargs chmod g+rws
Assuming I have recalled correctly.

This also assumes that your "cvs" user is in a Unix group with all the rest of your developers, and if you are not using pserver you don't even need that cvs user.

[1] see the first paragraph of http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_2.html#SEC13 [2] http://ximbiot.com/cvs/wiki/index.php?title=CVS_FAQ#Why_are_new_files_and_directories_being_created_with_the_wrong_group_on_the_server.3F

Hope this helps
--
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]