[Top][All Lists]

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

Re: Right Permissons !?

From: Larry Jones
Subject: Re: Right Permissons !?
Date: Thu, 27 Sep 2001 15:04:31 -0400 (EDT)

Chris Barker writes:
> Why is CVS designed this way? I would expect that all the files put in
> the repository by cvs would have the ownership and permissions set by
> cvs, and so all be the same (the same as the user running cvs--root?)

When using pserver, CVS only runs as root long enough to validate the
user's password.  Once that's done, CVS switches user and runs as the
real user.  That allows you to use normal filesystem permissions to
control what users can do.

> I did follow suggestions in the docs, and create a cvs group, and add
> all the users that access cvs to that group, 

If you were running one of the BSD Unixes rather than Linux, that's all
you would have to do since on BSD Unixes newly created files and
directories get their group from their parent directory rather than from
the creating process.

> but the files (and new
> directories) get created with primary group of the creater (users),
> rather than group cvs.

That's because Linux uses AT&T Unix filesystem semantics rather than BSD
Unix filesystem semantics by default.  To get it to use BSD semantics in
a directory, you have to set the SGID bit (chmod g+s) on the directory. 
You probably want to go ahead and do that to all of the directories in
your repository, with the possible exception of the CVSROOT directory.

-Larry Jones

Isn't it sad how some people's grip on their lives is so precarious
that they'll embrace any preposterous delusion rather than face an
occasional bleak truth? -- Calvin

reply via email to

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