You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

ViewVC is more strict than our existing WebSVN subversion web interface.

This means that the access_file that you have already setup and that works fine with WebSVN may not have the same behavior with ViewVC.

For Example:

Say you have a repository with the following top level folders:

  • Folder-A
  • Folder-B
  • Folder-C
  • rice_config

If your access_file looked like this:

[/]
mynetid = rw

[/Folder-A]
mynetid = rw

[/Folder-B]
* = r

[/rice_config]
mynetid = rw
* =

In WebSVN

  • You would be able to see Folder-A, Folder-B, and Folder-C
  • The anonymous user would be able to view Folder-B

In ViewVC

  • You would be able to see Folder-A, Folder-B, and Folder-C
  • The anonymous user would not be able to view Folder-B

To allow the anonymous user to see Folder-B you must give anonymous access to the root directory, like this:

[/]
mynetid = rw
* = r

[/Folder-A]
mynetid = rw

[/Folder-B]
* = r

[/rice_config]
mynetid = rw
* =

In ViewVC

  • The anonymous user can now see Folder-B but can also see Folder-A and Folder-B.

Permissions are inherited. So you must remove those permissions from each sub folder to block anonymous from seeing them.

[/]
mynetid = rw
* = r

[/Folder-A]
mynetid = rw
* = 

[/Folder-B]
* = r

[/Folder-C]
* = 

[/rice_config]
mynetid = rw
* =
  • No labels