Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

Code Block
[/]
mynetid = rw

[/Folder-A]
mynetid = rw

[/Folder-B]
* = r

[/rice_config]
mynetid = rw
* =

In WebSVN, this will allow anyone to read Folder-B. However, in ViewVC, no one will

  • 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:

Code Block

[/]
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.B because they must have permissions to the top level directory.The only way to make this work is to allow anyone to read the top level directory, but then you will have to specifically revoke everyone privileges for each sub folder, like this:

Code Block
[/]
mynetid = rw
* = r

[/Folder-A]
mynetid = rw
* = 

[/Folder-B]
* = r

[/Folder-C]
* = 

[/rice_config]
mynetid = rw
* =