On Wed, 22 Mar 2000, Nick Bastin wrote:
> >Thomas Raschbacher wrote:
> >
> >> > If anyone wants to manage the docs tree, be my guest! :^)
> >
> >> I'll do that if you want me to.
> >
> >Sounds good to me.
> >
> >Anybody, is it possible to give CVS write permission to
> >someone, but limit the scope to a directory downward?
> >
> >This would be ideal for stuff like docs management,
> >and other subprojects.
>
> Ok, I take back what I said before about seeming to not be able to do it,
> althogh it's a bit of a hassle. You can play a neat little game (which I
> just did) with the $CVSROOT/CVSROOT/passwd file (simplified, obviously):
>
> nbastin:CrYpTsTrInG:nbastin
> guest:cRyPtStRiNg:cvsguest
>
> Ok, the first column is the cvs username. The second column is, obviously,
> the password, and the third column is the user in the /etc/passwd file that
> this user relates to. You can now play a neat game with /etc/group to put
> certain users in a group called docs, and then make all of the files in the
> docs tree have permissions of 775, and then make docs the group, and then
> every user in the docs tree can write, but people in other groups can only
> read. This works out well, obviously, since people can belong to more than
> one group. However, all this said, you have to be careful to make sure
> that if someone belongs to more than group, that the files they write in
> docs/ are with a group ownership of docs, and not of their other group.
>
I don't know about other UN*Xs, but when we had to do this on our Linux
CVS server at one of my previous jobs we played with the whole "sticky
bit" mode. ie. you can chmod a directory so that all files and
subdirectories created within it are given the same group ownership and
permissions as the parent directory.
Then we did the same thing, a docs/ tree, a graphics/ tree, a src/ tree
etc.. Pretty slick.
-emile
> Ahh, unix. :-)
>
>
> --
> Nick Bastin
> Software Developer
> OPNET Technologies
>
>
>
-------------------------------------------------------------------
ESR: I want to live in a world where software doesn't suck.
RMS: Any software that isn't free sucks.
Linus: I'm interested in free beer.
- As reported by Elizabeth O. Coolbaugh of LWN
from LinuxWorld Conference and Expo
-------------------------------------------------------------------