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

Re: Restricting read access to one file

From: Miha Vitorovic <mvitorovic_at_nil.si>
Date: 2005-06-07 13:01:49 CEST

Doh!

How about this then [I haven't tried it, though]:

Create a special a special Authorization file that gives read acces only
to those people that need it.

Use reg-exp in the apache httpd.conf file to achieve what you need.

From the apache documentation:
--- cut 'ere ---
Extended regular expressions can also be used, with the addition of the ~
character. For example:
<Location ~ "/(extra|special)/data">
--- cut 'ere ---

Something like this:

<Location ~ "your-specail-file">
  DAV svn
  SVNPath C:/repo

  AuthType Basic
  AuthName "Special file access"
  AuthUserFile c:/etc/htpasswd

  Require valid-user

  AuthzSVNAccessFile c:/etc/your-special-auth-file
</Location>

Cheers,

---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer
   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si
"Max Bowsher" <maxb@ukf.net> wrote on 07.06.2005 12:24:59:
> Miha Vitorovic wrote:
> > It seems to me that  'pre-commit'  hook script is an excellent 
candidate
> > for just this sort of thing...
> 
> No. That will work for *write* access, but the question asked is about 
> *read* access.
> 
> Max.
> 
> > ---
> >   Miha Vitorovic
> >   Inženir v tehničnem področju
> >   Customer Support Engineer
> >
> >    NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana, 
Slovenia
> >    Phone +386 1 4746 500      Fax +386 1 4746 501 http://www.NIL.si
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 7 13:06:00 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.