[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Locking a whole repository

From: Blair Zajac <blair_at_orcaware.com>
Date: 2007-06-29 02:56:56 CEST

Reinhard Brandstädter wrote:
> Hello,
>
> Is it possible to administratively lock a whole repository for any access?
> There are times where I want to completely lock-down a repository for people's
> access. A possible way could pe changing the permissions or removing the
> apache configuration but this is a bit too complex.
> What I had in mind was creating a "lock" file in the repository's directory so
> that only svnadmin commands work (e.g. dump and load) and when this lock file
> is removed people can access it again.
>
> Reinhard

If you want to still allow read-only access, you can copy /bin/false into an
unused pre-commit or start-commit script, or if you have both, just add an 'exit
1' to the top. If you want to disable all access, just move the top repository
directory.

Regards,
Blair

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 29 02:57:27 2007

This is an archived mail posted to the Subversion Users mailing list.