Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 31st July 2009, 23:35
mmw mmw is offline
Junior Member
Join Date: Jul 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default websvn access rights for individual repositories, FML

Hi all,

I'm having a lot of trouble getting websvn to give different SVN repositories different access rights. I would like "myRepo1" to require a username/password, and "myRepo2" to not require any authentication. FYI, I installed websvn using the Debian websvn HowTo article.

1) What is the location of the "svn access file" I should be using? My users connect to svn though SSH - all of us have accounts on my server. Does that mean I should be using /etc/passwd? I tried using "/etc/passwd" in my /etc/websvn/config.php file like so:
$config->useAuthenticationFile('/etc/passwd', '/var/svn-repos/myRepo1');
It complains about "/var/svn-repos/myRepo1" not existing..even though it does, so first of all, why does it not recognize SVN repo names?

Not to worry though, I can force websvn to detect my repository like so:
$config->addRepository('myRepo1', '/var/svn-repos/myRepo1');
But now when I load up websvn in my web browser I notice that there is NO authentication - i.e it never asks for my user/password. If I switch back to $config->parentPath in my config.php file I see the prompt for username/password, but it now requires authentication for BOTH repo1, and repo2...FML

2) Does my /etc/websvn/apache2.conf look OK?
# Configuration for websvn using php4.

Alias /websvn /usr/share/websvn

<Directory /usr/share/websvn>
  DirectoryIndex index.php
  Options FollowSymLinks
  AuthType Basic
  AuthName "Subversion repository"
  AuthUserFile /etc/passwd
  Order allow,deny
  Allow from all
  <IfModule mod_php4.c>
    php_flag magic_quotes_gpc Off
    php_flag track_vars On
Any help with this would be appreciated. Since websvn doesn't provide any kind of documentation it has been really frustrating trying to troubleshoot this

Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig on a RaQ2 mattm Installation/Configuration 12 23rd January 2008 19:17
Backing Up Maildir Directories & Access Rights reinier Installation/Configuration 1 4th January 2007 16:42
User rights question. naruto General 7 29th August 2006 15:08
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 19:26
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 18:02

All times are GMT +2. The time now is 16:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.