info-cvs
[Top][All Lists]
Advanced

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

Re: group ownerships under CVS


From: Todd Denniston
Subject: Re: group ownerships under CVS
Date: Fri, 16 Nov 2007 16:53:32 -0500
User-agent: Thunderbird 2.0.0.6 (X11/20070728)

Kinson Liu wrote, On 11/15/2007 09:12 PM:
Hi there,

assumptions
1) under Linux.
2) using a file system that follows Unix permissions.
Summary related to the questions you asked :

If a user is inside two groups under the CVS server and he/she commits
new files, what group ownerships of those committed new files will be?

If the directory does not have the group sticky bit, then the primary GID will be used (see passwd file, or it's replacements).

If the directory does have the group sticky bit AND the user is a member of the group that the directory is owned by, then the group that owns the directory will be used.

If the directory does have the group sticky bit AND the user is not a member of the group that the directory is owned by, then I don't know (unless you were wise and disallowed other/world from writing to the directory).

What if they are folders instead of files?

Same.
How about importing
instead of committing?

Same I think.
Last question, would checking out a file ever
change the group ownership of that file under the CVS server?

I believe it could if the user has write privileges to the directory, AND either is not a member of the group who owns the directory, or the SGID bit is not set.


Thanks,

Kinson



The File permissions section[1] of the manual[2] is something that should give you the details you may need.


[1] http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_2.html#SEC13
[2] http://ximbiot.com/cvs/manual/
--
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]