info-cvs
[Top][All Lists]
Advanced

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

Re: File Permissions of new files.


From: Larry Jones
Subject: Re: File Permissions of new files.
Date: Wed, 30 Apr 2008 21:08:28 -0400 (EDT)

Volker Katz writes:
> 
> I've read, that CVS sets the files' right according to the parent 
> directory's rights.

No.  CVS expects the group id of a newly-created file to be inherited
from its directory, but the permissions are not inherited.  That usually
isn't a problem because if you don't have read/execute permission on a
directory, you don't have any access to any of the files it contains, no
matter what their permissions are.

A new repository file's permissions are determined by the permissions of
the user file it is being created from.  The user permissions are ORed
into the group and other permissions, all write permissions are removed,
and the permissions specified in $CVSUMASK are removed.  The user's
umask is not used, only $CVSUMASK.  If it didn't work for you, it could
be because you neglected to export it or because you're using a client/
server access mode and had it set in the client's environment rather
than the server's environment.

-Larry Jones

Nobody knows how to pamper like a Mom. -- Calvin




reply via email to

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