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

Is hiding access restricted dirs from parent dir's listing possible?

From: Hiroharu Tamaru <tamaru_at_myn.rcast.u-tokyo.ac.jp>
Date: 2004-11-07 20:15:50 CET

Hello.

Is hiding access restricted dirs from parent dir's listing possible?

I run subversion 1.1.1 on FreeBSD with apache2 + mod_dav_svn.

In the apache config, I set every access to this repository require
a valid-user via AuthType Basic and thus no anonymous access is granted.

AuthzSVNAccessFile has something like this:
[groups]

[/]
user1 = rw
* = r

[restricted1]
user1 = rw
* =

[public1]
* = rw

[public2]
* = rw

Now, is it possible to hide the existence of /restricted1 directory
when another user, user2, browses / with a web browser, or by
svn ls http://path_to_repo/ ?

In other words, when user1 runs svn ls http://path_to_repo/ ,
I wish it to show:
restricted
public1
public2

but, when user2 runs the same command, I'd like it to show:
public1
public2

I thought I remember seeing it like this at some time before,
but now as I revisited it, it shows everything that lives in this dir,
whether or not one has a (read) access right on the child dirs.

Is it possible to configure things to show the way I wish?
Thank you.

This is my location secion, by the way
<Location /svn>
    DAV svn
    SVNPath /path/to/repo
    SVNIndexXSLT "/svnindex.xsl"
    AuthType Basic
    AuthName "Subversion user"
    AuthUserFile /path/to/htpasswdfile
    AuthzSVNAccessFile /path/to/svnaccessfile
    Require valid-user
</Location>

-- 
Hiroharu Tamaru
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Nov 7 20:16:43 2004

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