info-cvs
[Top][All Lists]
Advanced

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

Re: limiting access


From: Larry Jones
Subject: Re: limiting access
Date: Sat, 16 Feb 2002 16:31:10 -0500 (EST)

Petr Kozelka writes:
> 
> I would like to know if it is possible to restrict "commit" access to some 
> files
> or directories to certain users only, using CVS means. I want to do this on a
> server where I myself have only CVS access.

The best way to do that is by setting the permissions on the repository
directories so that only the people you want to be able to commit have
write permission (you can only do this on a directory basis, not per
file).  If you still want to allow other people to read those
directories (e.g., do chekout, diff, etc.), you have to use LockDir= in
your CVSROOT/config file to put the lock files somewhere other than
inside the repository since read-only users still need to be able to
create lock files.  If you don't have direct access to the server, that
could be tricky; you can also use a commitinfo script to control access,
but you have to be very careful -- it's easy to shoot yourself in the
foot doing that.

-Larry Jones

Summer vacation started!  I can't be sick! -- Calvin



reply via email to

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